mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
custom error
This commit is contained in:
@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user