summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.py b/src/config.py
index 4bb646b3..97be4946 100644
--- a/src/config.py
+++ b/src/config.py
@@ -123,7 +123,11 @@ class Config(RawConfigParser):
set the value in the configuration then save it
to the file
"""
- RawConfigParser.set(self, section, option, value)
+ try:
+ RawConfigParser.set(self, section, option, value)
+ except NoSectionError:
+ # TODO, add this section if it didn't exist
+ return
self.write_in_file(section, option, value)
# creates the configuration directory if it doesn't exist