From 8ef067958d87d6be34c53b09201e73bce23d6ce0 Mon Sep 17 00:00:00 2001 From: Lyndsy Simon Date: Fri, 12 Sep 2014 13:24:50 -0400 Subject: [PATCH] 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. --- clint/textui/prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clint/textui/prompt.py b/clint/textui/prompt.py index 5041207..7a76dac 100644 --- a/clint/textui/prompt.py +++ b/clint/textui/prompt.py @@ -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)) \ No newline at end of file + except Exception as e: + puts(yellow(e.message))