remove url check wrapper

will be a seperate PR later
This commit is contained in:
Matthias 2021-11-21 01:16:12 +01:00
parent e1dd7a17f2
commit c0e45d7b4f
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -18,14 +18,3 @@ def get_plugin_urls():
urls.append(plugin.urlpatterns)
# TODO wrap everything in plugin_url_wrapper
return url(f'^{PLUGIN_BASE}/', include((urls, 'plugin')))
def plugin_url_wrapper(view):
"""wrapper to catch errors and log them to plugin error stack"""
def f(request, *args, **kwargs):
try:
return view(request, *args, **kwargs)
except Exception as error:
get_plugin_error(error, do_log=True, log_name='view')
# TODO disable if in production
return f