mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 14:50:17 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user