diff options
Diffstat (limited to 'module/obmc/wsgi')
-rw-r--r-- | module/obmc/wsgi/apps/rest_dbus.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index f761df9..d89cb68 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -507,11 +507,15 @@ class PropertyHandler(RouteHandler): converted_value = None try: converted_value = convert_type(expected_type, value) - self.do_put(path, prop, converted_value, False) - return except Exception as ex: abort(403, "Failed to convert %s to type %s" % (value, expected_type)) + try: + self.do_put(path, prop, converted_value, False) + return + except Exception as ex: + abort(403, str(ex)) + abort(403, str(e)) raise |