From 2b98e04dccbcfbd51c41096c52831cc4cafc7863 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 30 Sep 2022 00:19:33 +0200 Subject: [PATCH] Do not error anymore, when Jira URL/token is not configured --- src/fime/config.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/fime/config.py b/src/fime/config.py index f8025a8..96ca4f8 100644 --- a/src/fime/config.py +++ b/src/fime/config.py @@ -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}"')