aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gbp/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 4f9e91d3..aa5e1889 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -600,7 +600,7 @@ class GbpOptionParser(OptionParser):
try:
self.parse_config_files()
- except configparser.ParsingError as err:
+ except (configparser.ParsingError, configparser.DuplicateSectionError) as err:
raise GbpError(str(err) + "\nSee 'man gbp.conf' for the format.")
OptionParser.__init__(self, option_class=GbpOption,