summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorTerry Howe <terrylhowe@gmail.com>2015-12-08 09:23:47 -0700
committerTerry Howe <terrylhowe@gmail.com>2015-12-08 09:23:47 -0700
commit23486176063fb97c811af92c8af63ef833508d40 (patch)
tree5eb34bd29fdf4c95f1681396f820077567a7d610 /openstackclient/shell.py
parent56150de2243c8b9d81aa2dc87ffc764b893a75e1 (diff)
downloadpython-openstackclient-23486176063fb97c811af92c8af63ef833508d40.tar.gz
The format_exc method does not take an exception
For py35, this call blows up. Seems to be ignored for py27, but even in py27, it doesn't take an exception. https://docs.python.org/2.7/library/traceback.html https://docs.python.org/3/library/traceback.html Change-Id: I2602426b966045b15b96e5e41d0df6524ed05119
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index 5b4939a2..c84e2b1d 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -116,7 +116,7 @@ class OpenStackShell(app.App):
if not logging.getLogger('').handlers:
logging.basicConfig()
if self.dump_stack_trace:
- self.log.error(traceback.format_exc(e))
+ self.log.error(traceback.format_exc())
else:
self.log.error('Exception raised: ' + str(e))