2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-01 13:06:45 +00:00

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. rather than being exported to PDF.
In this case, we do the following: In this case, we do the following:
- Individually generate each label, exporting as an image file - Individually generate each label, exporting as an image file
- Pass all the images through to the label printing plugin - Pass all the images through to the label printing plugin
- Return a JSON response indicating that the printing has been offloaded - Return a JSON response indicating that the printing has been offloaded
""" """
for output in outputs: 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}'") logger.info(f"Plugin '{plugin_slug}' is processing triggered event '{event}'")
plugin = registry.plugins.get(plugin_slug, None) plugin = registry.plugins.get(plugin_slug, None)
if plugin is None: if plugin is None:
logger.error(f"Could not find matching plugin for '{plugin_slug}'") logger.error(f"Could not find matching plugin for '{plugin_slug}'")
return return
@ -206,7 +206,7 @@ def print_label(plugin_slug, label_image, **kwargs):
logger.info(f"Plugin '{plugin_slug}' is printing a label") logger.info(f"Plugin '{plugin_slug}' is printing a label")
plugin = registry.plugins.get(plugin_slug, None) plugin = registry.plugins.get(plugin_slug, None)
if plugin is None: if plugin is None:
logger.error(f"Could not find matching plugin for '{plugin_slug}'") logger.error(f"Could not find matching plugin for '{plugin_slug}'")
return return