From f619e4a762421177de2a22b6b0099d89f72ee7bd Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Jun 27 2018 06:58:05 +0000 Subject: Fix string interpolation for logging Fixes following pylint warning. Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation) --- diff --git a/greenwave/policies.py b/greenwave/policies.py index 7a499b6..0f1166c 100644 --- a/greenwave/policies.py +++ b/greenwave/policies.py @@ -318,7 +318,7 @@ class RemoteRule(Rule): policies = list(policies) except yaml.parser.ParserError as e: # if the yaml file is malformed we skip these policies - log.warning("Error parsing gating.yaml for package {}: {}".format(pkg_name, e)) + log.warning("Error parsing gating.yaml for package %s: %s", pkg_name, e) return handle_misconfigured_gating_yaml(subject_type, subject_identifier, waivers) # policies in dist-git are always about a package for policy in policies: