mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 05:26:45 +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')
|
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):
|
class PluginAppConfig(AppConfig):
|
||||||
name = 'plugin'
|
name = 'plugin'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user