Skip to content

Commit 4c3216d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Replace oslo_utils.encodeutils.exception_to_unicode"
2 parents 4200e9c + 4d2dacb commit 4c3216d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

novaclient/shell.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,9 @@ def main(argv=sys.argv[1:]):
836836
OpenStackComputeShell().main(argv)
837837
except Exception as exc:
838838
logger.debug(exc, exc_info=1)
839-
message = encodeutils.exception_to_unicode(exc)
840839
print("ERROR (%(type)s): %(msg)s" % {
841840
'type': exc.__class__.__name__,
842-
'msg': message},
841+
'msg': exc},
843842
file=sys.stderr)
844843
sys.exit(1)
845844
except KeyboardInterrupt:

0 commit comments

Comments
 (0)