mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:54:34 +02:00
Raise explicitly an error (#6883)
Explicit is better than implicit When calling raise without an argument, Python will raise the last error occured from the caller except block. This makes my PyCharm very sad however. So this PR makes the function handling the error raising explicitly the error received as an argument.
This commit is contained in:
committed by
Brad Warren
parent
20ed165699
commit
97d269ceb5
@@ -263,4 +263,4 @@ def _handle_perform_error(error):
|
||||
if not should_retry:
|
||||
raise errors.PluginError(msg)
|
||||
else:
|
||||
raise
|
||||
raise error
|
||||
|
||||
Reference in New Issue
Block a user