Do not error anymore, when Jira URL/token is not configured
This commit is contained in:
parent
a5707a0e3e
commit
2b98e04dcc
@ -9,8 +9,6 @@ try:
|
||||
except ImportError:
|
||||
from PySide2 import QtCore
|
||||
|
||||
from fime.exceptions import FimeException
|
||||
|
||||
|
||||
def dequotify(string):
|
||||
if string.startswith(('"', "'")) and string.endswith(('"', "'")):
|
||||
@ -30,11 +28,6 @@ class Config:
|
||||
config_text = f.read()
|
||||
config_text = "[DEFAULT]\n" + config_text
|
||||
self._configparser.read_string(config_text)
|
||||
# TODO change menu items
|
||||
if (not self._configparser.has_option("DEFAULT", "jira_url") or
|
||||
not self._configparser.has_option("DEFAULT", "jira_token")):
|
||||
raise FimeException(f'Please add config file {self.config_path} '
|
||||
f'with config keys "jira_url" and "jira_token" in INI style')
|
||||
|
||||
def save(self):
|
||||
logger.info(f'writing config file "{self.config_path}"')
|
||||
|
Loading…
Reference in New Issue
Block a user