diff options
Diffstat (limited to 'module/obmc/wsgi/apps')
-rw-r--r-- | module/obmc/wsgi/apps/rest_dbus.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index b1da97d..93f0895 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -96,6 +96,9 @@ class RouteHandler(object): try: return f(**kw) except dbus.exceptions.DBusException, e: + if e.get_dbus_name() == \ + 'org.freedesktop.DBus.Error.ObjectPathInUse': + abort(503, str(e)) if e.get_dbus_name() != obmc.mapper.MAPPER_NOT_FOUND: raise if callback is None: |