Author: eevans
Date: Thu Mar 24 19:34:54 2011
New Revision: 1085092
URL: http://svn.apache.org/viewvc?rev=1085092&view=rev
Log:
convert exception to string for printing
Patch by eevans
Modified:
cassandra/trunk/drivers/py/cqlsh
Modified: cassandra/trunk/drivers/py/cqlsh
URL:
http://svn.apache.org/viewvc/cassandra/trunk/drivers/py/cqlsh?rev=1085092&r1=1085091&r2=1085092&view=diff
==============================================================================
--- cassandra/trunk/drivers/py/cqlsh (original)
+++ cassandra/trunk/drivers/py/cqlsh Thu Mar 24 19:34:54 2011
@@ -199,7 +199,7 @@ if __name__ == '__main__':
readline.write_history_file(HISTORY)
break
except CQLException, cqlerr:
- shell.printerr(cqlerr, color=RED)
+ shell.printerr(str(cqlerr), color=RED)
except KeyboardInterrupt:
shell.reset_statement()
print