From b7fca9bc169be788bb6a55819e2dab923a6e03d4 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Tue, 23 Jan 2018 12:16:50 -0500 Subject: module: pep8 fixes A couple pep8 errors found their way in. Change-Id: I31c1de3b2bc92b20a809b9c2638df0d83c2b2ea3 Signed-off-by: Brad Bishop --- module/obmc/wsgi/apps/rest_dbus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/obmc/wsgi') diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index 3d056fb..f172cdc 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -367,7 +367,7 @@ class MethodHandler(RouteHandler): except dbus.exceptions.DBusException, e: paramlist = [] - if e.get_dbus_name() == DBUS_INVALID_ARGS and retry == True: + if e.get_dbus_name() == DBUS_INVALID_ARGS and retry: signature_list = get_method_signature(self.bus, self.service, path, self.interface, @@ -461,7 +461,7 @@ class PropertyHandler(RouteHandler): except ValueError, e: abort(400, str(e)) except dbus.exceptions.DBusException, e: - if e.get_dbus_name() == DBUS_INVALID_ARGS and retry == True: + if e.get_dbus_name() == DBUS_INVALID_ARGS and retry: bus_name = properties_iface.bus_name expected_type = get_type_signature_by_introspection(self.bus, bus_name, -- cgit v1.2.1