mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +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…
x
Reference in New Issue
Block a user