# HG changeset patch # User Jeff Hammel # Date 1335300375 25200 # Node ID c412148c8c1e1fcdd33a250722eb00532b8c2efb # Parent a46a76a7990d5999554fee42fc8575a481c6ab76 fix piping issue diff -r a46a76a7990d -r c412148c8c1e bzconsole/command.py --- a/bzconsole/command.py Thu Apr 05 08:51:33 2012 -0700 +++ b/bzconsole/command.py Tue Apr 24 13:46:15 2012 -0700 @@ -128,7 +128,10 @@ # invoke the command retval = getattr(_object, name)(*command_args, **command_options.__dict__) if isinstance(retval, basestring): - print retval + try: + print retval + except: + print str(retval.encode('ascii', errors='ignore')) elif retval is None: pass elif isinstance(retval, list):