mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
2335a8c316
commit
955f389d66
@ -84,8 +84,6 @@ def handle_error(error, do_raise: bool = True, do_log: bool = True, log_name: st
|
||||
log_kwargs['reference'] = log_name
|
||||
log_error({package_name: str(error)}, **log_kwargs)
|
||||
|
||||
new_error = IntegrationPluginError(package_name, str(error))
|
||||
|
||||
if do_raise:
|
||||
raise IntegrationPluginError(package_name, str(error))
|
||||
# endregion
|
||||
|
Loading…
Reference in New Issue
Block a user