Skip to content

Commit

Permalink
Handle no platform info in ScenarioInfo.url
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Oct 11, 2023
1 parent 8abd40c commit d8ffed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_ix_models/util/scenarioinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def url(self) -> str:
@url.setter
def url(self, value):
p, s = ixmp.utils.parse_url(value)
self.platform_name = p["name"]
self.platform_name = p.get("name")
for k in "model", "scenario", "version":
setattr(self, k, s.get(k))

Expand Down

0 comments on commit d8ffed1

Please sign in to comment.