aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-07-15 22:53:11 +0800
committerMaximilian Hils <git@maximilianhils.com>2017-07-17 13:59:25 +0200
commit1f5ede285777c9494ae1558c86a97961b1792005 (patch)
tree20058bb9957f8e5ddf9ce469a0566e1448b91fa2
parent0b8b943b0ba0a6d0705c96297b1b9e43a9d56c25 (diff)
downloadmitmproxy-1f5ede285777c9494ae1558c86a97961b1792005.tar.gz
mitmproxy-1f5ede285777c9494ae1558c86a97961b1792005.tar.bz2
mitmproxy-1f5ede285777c9494ae1558c86a97961b1792005.zip
[web] Update error msg in PUT /options API.
-rw-r--r--mitmproxy/tools/web/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py
index 8b4a39b6..c6fb2ef6 100644
--- a/mitmproxy/tools/web/app.py
+++ b/mitmproxy/tools/web/app.py
@@ -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))