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