We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26139cb commit 69044f6Copy full SHA for 69044f6
src/git_sim/config.py
@@ -12,7 +12,7 @@
12
from typing import List
13
from git.repo import Repo
14
from argparse import Namespace
15
-from configparser import NoSectionError
+from configparser import NoSectionError, NoOptionError
16
from git.exc import GitCommandError, InvalidGitRepositoryError
17
18
from git_sim.settings import settings
@@ -195,6 +195,9 @@ def add_details(self):
195
except NoSectionError:
196
print(f"git-sim error: section '{section}' doesn't exist in config")
197
sys.exit(1)
198
+ except NoOptionError:
199
+ print(f"git-sim error: option '{option}' doesn't exist in config")
200
+ sys.exit(1)
201
elif len(self.settings) == 2:
202
value = self.settings[1].strip('"').strip("'").strip("\\")
203
section_text = (
0 commit comments