mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 07:49:10 +00:00
[web] Update error msg in PUT /options API.
This commit is contained in:
parent
73855908da
commit
ca8364404d
@ -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))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user