summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.py b/src/config.py
index 34db0477..354c3447 100644
--- a/src/config.py
+++ b/src/config.py
@@ -256,7 +256,7 @@ class Config(RawConfigParser):
sections[current_section] = [current_line, current_line]
current_line += 1
- if not duplicate_section:
+ if not duplicate_section and current_section:
sections[current_section][1] = current_line
return (sections, lines_before)