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:
Adrien Ferrand
2019-03-25 15:06:13 -07:00
committed by Brad Warren
parent 20ed165699
commit 97d269ceb5
+1 -1
View File
@@ -263,4 +263,4 @@ def _handle_perform_error(error):
if not should_retry:
raise errors.PluginError(msg)
else:
raise
raise error