aboutsummaryrefslogtreecommitdiff
path: root/labbot/config.py
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-09-07 16:07:22 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-09-07 16:07:22 +0200
commit234bb54e699bbacde75b36a6dda4adc4d636da5a (patch)
treeb6a97f7c64c503a2719434d4e3204e06c6352f2c /labbot/config.py
parente866d2e9d08cbe51da8194c848078ee258bd8c58 (diff)
downloadlab-bot-234bb54e699bbacde75b36a6dda4adc4d636da5a.tar.gz
lab-bot-234bb54e699bbacde75b36a6dda4adc4d636da5a.zip
Implement Dashboard login, hide dashboard config
Diffstat (limited to 'labbot/config.py')
-rw-r--r--labbot/config.py7
1 files changed, 4 insertions, 3 deletions
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