From 43b29eedd240c7aebfefc535381c8256b8f87340 Mon Sep 17 00:00:00 2001 From: mw Date: Mon, 2 Sep 2019 16:53:10 +0200 Subject: [PATCH] Fix pylint logging warning, exclude W0212 --- bumblebee/modules/caffeine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bumblebee/modules/caffeine.py b/bumblebee/modules/caffeine.py index 935cfb2..b0e7d57 100644 --- a/bumblebee/modules/caffeine.py +++ b/bumblebee/modules/caffeine.py @@ -1,4 +1,4 @@ -#pylint: disable=C0111,R0903 +#pylint: disable=C0111,R0903,W0212 """Enable/disable automatic screen locking. @@ -40,7 +40,7 @@ class Module(bumblebee.engine.Module): xid = bumblebee.util.execute("xdotool search --class \"i3bar\"").partition('\n')[0].strip() if xid.isdigit(): return xid - logging.info("Module caffeine: xdotool couldn't get X window ID of \"i3bar\".") + logging.warning("Module caffeine: xdotool couldn't get X window ID of \"i3bar\".") return None def _notify(self): @@ -79,7 +79,7 @@ class Module(bumblebee.engine.Module): def _toggle(self, _): missing = self._check_requirements() if missing: - logging.warning("Could not run caffeine - missing {}!".format(", ".join(missing))) + logging.warning('Could not run caffeine - missing %s!', ", ".join(missing)) return self._active = not self._active