plug do_raise for enviroment var manipulating

This commit is contained in:
Matthias 2022-03-13 21:36:55 +01:00
parent 4a7f9630a5
commit 4e6c5f90f7
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -85,6 +85,9 @@ def handle_error(error, do_raise: bool = True, do_log: bool = True, log_name: st
log_error({package_name: str(error)}, **log_kwargs)
if do_raise:
# do a straight raise if we are playing with enviroment variables at execution time, ignore the broken sample
if settings.TESTING_ENV and package_name != 'integration.broken_sample':
raise error
raise IntegrationPluginError(package_name, str(error))
# endregion