From 0b6e9ef4c9ef029dd36251e5796dad04b35365f1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Nov 2021 03:05:36 +0100 Subject: [PATCH] custom error --- InvenTree/plugin/apps.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 6abb67a446..ce0b07e5fd 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -29,6 +29,15 @@ from plugin.integration import IntegrationPluginBase logger = logging.getLogger('inventree') +class PluginLoadingError(Exception): + def __init__(self, path, message): + self.path = path + self.message = message + + def __str__(self): + return self.message + + class PluginAppConfig(AppConfig): name = 'plugin'