IAMconsortium / pyam

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

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

Closed danielhuppmann closed 8 months ago

danielhuppmann commented 8 months 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 8 months 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: