mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
custom error
This commit is contained in:
parent
c57393f457
commit
0b6e9ef4c9
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user