Change exceptions to python3 syntax.

This commit is contained in:
ian 2015-04-13 12:35:20 -04:00
parent 62c08d96e5
commit 6747f82547
22 changed files with 38 additions and 38 deletions

View file

@ -68,7 +68,7 @@ class ActionModule(ActionBase):
seconds = int(self._task.args['seconds'])
duration_unit = 'seconds'
except ValueError, e:
except ValueError as e:
return dict(failed=True, msg="non-integer value given for prompt duration:\n%s" % str(e))
# Is 'prompt' a key in 'args'?