mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
raise proper error
This commit is contained in:
parent
7a102dcd8e
commit
025c6f9b82
@ -1,5 +1,6 @@
|
|||||||
"""Plugin mixin classes for label plugins"""
|
"""Plugin mixin classes for label plugins"""
|
||||||
|
|
||||||
|
from plugin.helpers import MixinNotImplementedError
|
||||||
|
|
||||||
class LabelPrintingMixin:
|
class LabelPrintingMixin:
|
||||||
"""
|
"""
|
||||||
@ -34,4 +35,4 @@ class LabelPrintingMixin:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Unimplemented (to be implemented by the particular plugin class)
|
# Unimplemented (to be implemented by the particular plugin class)
|
||||||
... # pragma: no cover
|
MixinNotImplementedError('This Plugin must implement a `print_label` method')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user