summaryrefslogtreecommitdiffstats
path: root/module/obmc/wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'module/obmc/wsgi')
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py4
1 files changed, 2 insertions, 2 deletions
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,
OpenPOWER on IntegriCloud