Bug 1513951 - [mach] Fix error handling bug in config.py r=gbrown
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 28 Feb 2019 18:03:47 +0000
changeset 519880 a6c5017346c4e76ec597d64f3843b6d9553babbd
parent 519879 c66965245aaa69ae80df2a398c62d15ffd1f76eb
child 519881 d8cdae952942c13e39008a5b6ab6400aa7cdfde1
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs1513951
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1513951 - [mach] Fix error handling bug in config.py r=gbrown Differential Revision: https://phabricator.services.mozilla.com/D21430
python/mach/mach/config.py
--- a/python/mach/mach/config.py
+++ b/python/mach/mach/config.py
@@ -375,17 +375,17 @@ class ConfigSettings(collections.Mapping
             config_settings[section][option] = meta
 
         for section_name, settings in config_settings.items():
             section = self._settings.get(section_name, {})
 
             for k, v in settings.items():
                 if k in section:
                     raise ConfigException('Setting already registered: %s.%s' %
-                                          section_name, k)
+                                          (section_name, k))
 
                 section[k] = v
 
             self._settings[section_name] = section
 
     def _finalize(self):
         if self._finalized:
             return