diff options
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 2ca3aaea8..1fe7ff0f0 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -463,7 +463,7 @@ class Command(HasParam): try: value = values.get(p.name) values[p.name] = p(value, **values) - except InvocationError, e: + except InvocationError as e: errors[p.name] = str(e) return dict( values=values, @@ -591,7 +591,7 @@ class Command(HasParam): try: return param(raw, **kw) - except (ValidationError, ConversionError), e: + except (ValidationError, ConversionError) as e: # Display error and prompt again self.Backend.textui.print_prompt_attribute_error(unicode(label), unicode(e.error)) |