From 234bb54e699bbacde75b36a6dda4adc4d636da5a Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 7 Sep 2022 16:07:22 +0200 Subject: Implement Dashboard login, hide dashboard config --- labbot/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'labbot/config.py') diff --git a/labbot/config.py b/labbot/config.py index 3574760..993d25a 100644 --- a/labbot/config.py +++ b/labbot/config.py @@ -42,9 +42,10 @@ class Config: # write the hardcoded config data ontop of the loaded data self.settings["GLOBAL"].update(global_data) - repo = self.settings.pop("REPO") - if repo: - self.settings["PROJECT"] = repo + try: + self.settings["PROJECT"] = self.settings.pop("REPO") + except KeyError: + pass except (IOError, ValueError): pass -- cgit v1.2.3