InvenTree/InvenTree/plugin/samples/integration/broken_sample.py

17 lines
326 B
Python

"""sample of a broken plugin"""
from plugin import InvenTreePlugin
class BrokenIntegrationPlugin(InvenTreePlugin):
"""
An very broken plugin
"""
NAME = 'Test'
TITLE = 'Broken Plugin'
SLUG = 'broken'
def __init__(self):
super().__init__()
raise KeyError('This is a dummy error')