From a1fa32a7375c2211a505acfba118ad8a8e6e4119 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Apr 30 2018 16:17:09 +0000 Subject: Fix pylint. --- diff --git a/greenwave/utils.py b/greenwave/utils.py index ef75ab1..7882168 100644 --- a/greenwave/utils.py +++ b/greenwave/utils.py @@ -145,9 +145,9 @@ def retry(timeout=None, interval=None, wait_on=Exception): while True: try: return function(*args, **kwargs) - except wait_on as e: - log.warn("Exception %r raised from %r. Retry in %rs" % ( - e, function, _interval)) + except wait_on as e: # pylint: disable=broad-except + log.warning("Exception %r raised from %r. Retry in %rs", + e, function, _interval) time.sleep(_interval) if (time.time() - start) >= _timeout: raise # This re-raises the last exception.