From 8321232484b982e4c89b115bbf854c301002b0cf Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sat, 11 Jan 2014 12:27:16 +0100 Subject: [PATCH] Fix bug in relational-cli that made it crash when an exception was raised --- CHANGELOG | 1 + relational_readline/linegui.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index dc088fd..64c448e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ 1.3 +- Fix bug in relational-cli that made it crash when an exception was raised 1.2 - Better tokenizer, gives more indicative errors diff --git a/relational_readline/linegui.py b/relational_readline/linegui.py index 573b851..897224f 100644 --- a/relational_readline/linegui.py +++ b/relational_readline/linegui.py @@ -296,7 +296,7 @@ def exec_query(command): completer.add_completion(relname) except Exception, e: - print colorize(e, ERROR_COLOR) + print colorize(str(e), ERROR_COLOR) def main(files=[]):