Provide fallbacks for Jira URL/token

This commit is contained in:
Fabian 2022-09-30 00:39:44 +02:00
parent 2b98e04dcc
commit 8b8afe0a07

View File

@ -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):