custom error

This commit is contained in:
Matthias 2021-11-20 03:05:36 +01:00
parent c57393f457
commit 0b6e9ef4c9
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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'