Fix syntax error prevent installation in Python 3.x

An exception handled in textui.prompt was being handled using the old-style
`except Exception, e:` syntax. I've updated this, but specifically have not
addressed the potential issue of catching a bare exception.
This commit is contained in:
Lyndsy Simon
2014-09-12 13:24:50 -04:00
parent 6dbc68df5b
commit 8ef067958d
+2 -2
View File
@@ -86,5 +86,5 @@ def query(prompt, default='', validators=None, batch=False):
for validator in validators:
user_input = validator(user_input)
return user_input
except Exception, e:
puts(yellow(e.message))
except Exception as e:
puts(yellow(e.message))