Skip to content

Commit 2348617

Browse files
committed
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
1 parent 56150de commit 2348617

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def run(self, argv):
116116
if not logging.getLogger('').handlers:
117117
logging.basicConfig()
118118
if self.dump_stack_trace:
119-
self.log.error(traceback.format_exc(e))
119+
self.log.error(traceback.format_exc())
120120
else:
121121
self.log.error('Exception raised: ' + str(e))
122122

0 commit comments

Comments
 (0)