more structure

This commit is contained in:
Matthias 2021-11-20 17:02:27 +01:00
parent 076cca5e62
commit 5f83fd007f
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -6,6 +6,7 @@ import traceback
from django.conf import settings
# region logging / errors
def log_plugin_error(error, reference: str = 'general'):
# make sure the registry is set up
if reference not in settings.INTEGRATION_ERRORS:
@ -39,3 +40,4 @@ def get_plugin_error(error, do_raise: bool = False, do_log: bool = False, log_na
raise IntegrationPluginError(package_name, str(error))
return package_name, str(error)
# endregion