mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +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
|
update = self.json
|
||||||
try:
|
try:
|
||||||
self.master.options.update(**update)
|
self.master.options.update(**update)
|
||||||
except (KeyError, TypeError) as err:
|
except Exception as err:
|
||||||
raise APIError(400, "{}".format(err))
|
raise APIError(400, "{}".format(err))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user