Provide fallbacks for Jira URL/token
This commit is contained in:
parent
2b98e04dcc
commit
8b8afe0a07
@ -40,7 +40,7 @@ class Config:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def jira_url(self):
|
def jira_url(self):
|
||||||
return dequotify(self._configparser["DEFAULT"]["jira_url"])
|
return dequotify(self._configparser.get("DEFAULT", "jira_url", fallback=""))
|
||||||
|
|
||||||
@jira_url.setter
|
@jira_url.setter
|
||||||
def jira_url(self, value):
|
def jira_url(self, value):
|
||||||
@ -48,7 +48,7 @@ class Config:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def jira_token(self):
|
def jira_token(self):
|
||||||
return dequotify(self._configparser["DEFAULT"]["jira_token"])
|
return dequotify(self._configparser.get("DEFAULT", "jira_token", fallback=""))
|
||||||
|
|
||||||
@jira_token.setter
|
@jira_token.setter
|
||||||
def jira_token(self, value):
|
def jira_token(self, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user