From 025c6f9b82f86eada8ed86247688b1322e3f5d73 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 15 May 2022 04:08:45 +0200 Subject: [PATCH] raise proper error --- InvenTree/plugin/base/label/mixins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugin/base/label/mixins.py b/InvenTree/plugin/base/label/mixins.py index 1e7b67dd3f..4057ad3bf6 100644 --- a/InvenTree/plugin/base/label/mixins.py +++ b/InvenTree/plugin/base/label/mixins.py @@ -1,5 +1,6 @@ """Plugin mixin classes for label plugins""" +from plugin.helpers import MixinNotImplementedError class LabelPrintingMixin: """ @@ -34,4 +35,4 @@ class LabelPrintingMixin: """ # Unimplemented (to be implemented by the particular plugin class) - ... # pragma: no cover + MixinNotImplementedError('This Plugin must implement a `print_label` method')