From efc6af5f4cebcdf97646bedade27983128116a6f Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 24 Mar 2022 16:18:08 +1100 Subject: [PATCH] PEP fixes --- InvenTree/label/api.py | 4 ++-- InvenTree/plugin/events.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/InvenTree/label/api.py b/InvenTree/label/api.py index 0a06e76b9e..1a679d5ac5 100644 --- a/InvenTree/label/api.py +++ b/InvenTree/label/api.py @@ -131,11 +131,11 @@ class LabelPrintMixin: rather than being exported to PDF. In this case, we do the following: - + - Individually generate each label, exporting as an image file - Pass all the images through to the label printing plugin - Return a JSON response indicating that the printing has been offloaded - + """ for output in outputs: diff --git a/InvenTree/plugin/events.py b/InvenTree/plugin/events.py index 25a693a4f8..829aeaa935 100644 --- a/InvenTree/plugin/events.py +++ b/InvenTree/plugin/events.py @@ -96,7 +96,7 @@ def process_event(plugin_slug, event, *args, **kwargs): logger.info(f"Plugin '{plugin_slug}' is processing triggered event '{event}'") plugin = registry.plugins.get(plugin_slug, None) - + if plugin is None: logger.error(f"Could not find matching plugin for '{plugin_slug}'") return @@ -206,7 +206,7 @@ def print_label(plugin_slug, label_image, **kwargs): logger.info(f"Plugin '{plugin_slug}' is printing a label") plugin = registry.plugins.get(plugin_slug, None) - + if plugin is None: logger.error(f"Could not find matching plugin for '{plugin_slug}'") return