Skip to content

Conversation

@louispt1
Copy link

Description

As per this comment](#107 (comment)) I saw that the errors were not always being handled gracefully in notebooks.

These changes lead to simple error messages such as:

Could not load scenario 1359192:
404: No such scenario: 1359192

As you can see from the change in src/pyetm/models/scenarios.py, because the errors are already well formed, plural classes (e.g. Scenarios) need only surface the errors when calling underlying singular class methods (e.g. Scenario.load()). That probably requires further examination/testing to see which cases might be rending error messages twice.

  • Investigate and test further 'double' error messages on 'plural' classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants