PEP fixes

This commit is contained in:
Oliver 2022-03-24 16:18:08 +11:00
parent f50dab22a6
commit efc6af5f4c
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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