From 3dd92416fe13dc27d7183411aaf5db0698f82c78 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 29 Oct 2022 22:45:58 +1100 Subject: [PATCH] Fix for label printing plugin hook (#3879) --- InvenTree/plugin/base/label/label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/plugin/base/label/label.py b/InvenTree/plugin/base/label/label.py index cc0ccadef5..d1ff575016 100644 --- a/InvenTree/plugin/base/label/label.py +++ b/InvenTree/plugin/base/label/label.py @@ -30,7 +30,7 @@ def print_label(plugin_slug: str, pdf_data, filename=None, label_instance=None, """ logger.info(f"Plugin '{plugin_slug}' is printing a label '{filename}'") - plugin = registry.plugins.get(plugin_slug, None) + plugin = registry.get_plugin(plugin_slug) if plugin is None: # pragma: no cover logger.error(f"Could not find matching plugin for '{plugin_slug}'")