IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
236 stars 120 forks source link

Raise explicit error message if no connection to IIASA manager service #796

Closed danielhuppmann closed 1 year ago

danielhuppmann commented 1 year ago

Description of PR

This PR fixes an ixmp4-integration issue where an AttributeError is raised (instead of a ConnectError) if the connection to the IIASA ScSe manager service cannot be established.

codecov[bot] commented 1 year ago

Codecov Report

Merging #796 (2caf42c) into main (3eda7e5) will decrease coverage by 0.1%. The diff coverage is 66.6%.

@@           Coverage Diff           @@
##            main    #796     +/-   ##
=======================================
- Coverage   94.7%   94.7%   -0.1%     
=======================================
  Files         62      62             
  Lines       5996    5999      +3     
=======================================
+ Hits        5681    5683      +2     
- Misses       315     316      +1     
Files Coverage Δ
pyam/iiasa.py 89.5% <66.6%> (-0.3%) :arrow_down: