From c0e45d7b4fe060b0cf3f957114d757c65b66500b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Nov 2021 01:16:12 +0100 Subject: [PATCH] remove url check wrapper will be a seperate PR later --- InvenTree/plugin/urls.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/InvenTree/plugin/urls.py b/InvenTree/plugin/urls.py index d5003701cb..c971e920b9 100644 --- a/InvenTree/plugin/urls.py +++ b/InvenTree/plugin/urls.py @@ -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