Fix bug in relational-cli that made it crash when an exception was raised

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2014-01-11 12:27:16 +01:00
parent be0d95b838
commit 8321232484
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
1.3 1.3
- Fix bug in relational-cli that made it crash when an exception was raised
1.2 1.2
- Better tokenizer, gives more indicative errors - Better tokenizer, gives more indicative errors

View File

@@ -296,7 +296,7 @@ def exec_query(command):
completer.add_completion(relname) completer.add_completion(relname)
except Exception, e: except Exception, e:
print colorize(e, ERROR_COLOR) print colorize(str(e), ERROR_COLOR)
def main(files=[]): def main(files=[]):