summaryrefslogtreecommitdiff
path: root/neutronclient/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'neutronclient/shell.py')
-rw-r--r--neutronclient/shell.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/neutronclient/shell.py b/neutronclient/shell.py
index fa73329..51804e9 100644
--- a/neutronclient/shell.py
+++ b/neutronclient/shell.py
@@ -666,10 +666,10 @@ class NeutronShell(app.App):
self.initialize_app(remainder)
except Exception as err:
if self.options.verbose_level >= self.DEBUG_LEVEL:
- self.log.exception(unicode(err))
+ self.log.exception(err)
raise
else:
- self.log.error(unicode(err))
+ self.log.error(err)
return 1
if self.interactive_mode:
_argv = [sys.argv[0]]
@@ -923,12 +923,12 @@ class NeutronShell(app.App):
def main(argv=sys.argv[1:]):
try:
- return NeutronShell(NEUTRON_API_VERSION).run(map(strutils.safe_decode,
- argv))
+ return NeutronShell(NEUTRON_API_VERSION).run(
+ list(map(strutils.safe_decode, argv)))
except exc.NeutronClientException:
return 1
except Exception as e:
- print(unicode(e))
+ print(e)
return 1