diff --git a/kallithea/controllers/admin/defaults.py b/kallithea/controllers/admin/defaults.py --- a/kallithea/controllers/admin/defaults.py +++ b/kallithea/controllers/admin/defaults.py @@ -97,7 +97,7 @@ class DefaultsController(BaseController) h.flash(_('Default settings updated successfully'), category='success') - except formencode.Invalid, errors: + except formencode.Invalid as errors: defaults = errors.value return htmlfill.render(