mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-15 23:21:32 +00:00
Add flake8-logging linting (#5620)
* added flake8-logging to make logging more robust * fixed LOG005 warnings * fixed LOG008 warnings * fixed LOG011 warnings * fixed more LOG011 errors * added ignores for intentional logger.error calls * fixed even more LOG011 errors
This commit is contained in:
@@ -80,7 +80,7 @@ class SettingsMixin:
|
||||
|
||||
if not plugin: # pragma: no cover
|
||||
# Cannot find associated plugin model, return
|
||||
logger.error(f"Plugin configuration not found for plugin '{self.slug}'")
|
||||
logger.error("Plugin configuration not found for plugin '%s'", self.slug)
|
||||
return
|
||||
|
||||
PluginSetting.set_setting(key, value, user, plugin=plugin)
|
||||
|
Reference in New Issue
Block a user