Skip to content

Commit 40d73a0

Browse files
committed
Correct reraising of exception
When an exception was caught and rethrown, it should call 'raise' without any arguments because it shows the place where an exception occured initially instead of place where the exception re-raised Change-Id: I3ec3680debbfad7c06f2251396e0e8e4e3df6c50
1 parent 3a509be commit 40d73a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openstackclient/shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ def initialize_app(self, argv):
148148
'auth_type': self._auth_type,
149149
},
150150
)
151-
except (IOError, OSError) as e:
151+
except (IOError, OSError):
152152
self.log.critical("Could not read clouds.yaml configuration file")
153153
self.print_help_if_requested()
154-
raise e
154+
raise
155155

156156
if not self.options.debug:
157157
self.options.debug = None

0 commit comments

Comments
 (0)