From 8b8afe0a07ed0bce99951e4661b35fcb3ba520f1 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 30 Sep 2022 00:39:44 +0200 Subject: [PATCH] Provide fallbacks for Jira URL/token --- src/fime/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fime/config.py b/src/fime/config.py index 96ca4f8..f50b8f8 100644 --- a/src/fime/config.py +++ b/src/fime/config.py @@ -40,7 +40,7 @@ class Config: @property def jira_url(self): - return dequotify(self._configparser["DEFAULT"]["jira_url"]) + return dequotify(self._configparser.get("DEFAULT", "jira_url", fallback="")) @jira_url.setter def jira_url(self, value): @@ -48,7 +48,7 @@ class Config: @property def jira_token(self): - return dequotify(self._configparser["DEFAULT"]["jira_token"]) + return dequotify(self._configparser.get("DEFAULT", "jira_token", fallback="")) @jira_token.setter def jira_token(self, value):