From d8ffed194ecfa78f5614558f92317958746844ec Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Tue, 19 Sep 2023 21:14:11 +0200 Subject: [PATCH] Handle no platform info in ScenarioInfo.url --- message_ix_models/util/scenarioinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message_ix_models/util/scenarioinfo.py b/message_ix_models/util/scenarioinfo.py index a68646faa4..80ddc3f801 100644 --- a/message_ix_models/util/scenarioinfo.py +++ b/message_ix_models/util/scenarioinfo.py @@ -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))