[web] Update error msg in PUT /options API.

This commit is contained in:
Matthew Shao 2017-07-15 22:53:11 +08:00
parent 73855908da
commit ca8364404d

View File

@ -447,7 +447,7 @@ class Options(RequestHandler):
update = self.json
try:
self.master.options.update(**update)
except (KeyError, TypeError) as err:
except Exception as err:
raise APIError(400, "{}".format(err))