From b9fac9dcedcbbca65cc43a37dfcbe8092911a4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Sat, 11 Jun 2016 12:05:09 +0200 Subject: [PATCH] polkit: fixed typo in DBusException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/utils/polkit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuned/utils/polkit.py b/tuned/utils/polkit.py index 574fb94..7f8df6f 100644 --- a/tuned/utils/polkit.py +++ b/tuned/utils/polkit.py @@ -26,12 +26,12 @@ class polkit(): subject = ('system-bus-name', {'name' : sender}) try: ret = self._authority.CheckAuthorization(subject, action_id, details, flags, cancellation_id)[0] - except (dbus.exceptions.DBusExceptions, ValueError) as e: + except (dbus.exceptions.DBusException, ValueError) as e: log.error("error querying polkit: %s" % e) # No polkit or polkit error, fallback to always allow root try: uid = self._bus.get_unix_user(sender) - except dbus.exceptions.DBusExceptions as e: + except dbus.exceptions.DBusException as e: log.error("error using falback authorization method: %s" % e) return -2 if uid == 0: