aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-07-15 22:53:11 +0800
committerMatthew Shao <me@matshao.com>2017-07-15 22:53:11 +0800
commitca8364404d8488fa4aff9f59830b10cae8ee3b8f (patch)
tree1c5b410779ccf43c7e66fe565d61ac8698e24c50
parent73855908da9460a9ba646a03415d2dcde4f378d0 (diff)
downloadmitmproxy-ca8364404d8488fa4aff9f59830b10cae8ee3b8f.tar.gz
mitmproxy-ca8364404d8488fa4aff9f59830b10cae8ee3b8f.tar.bz2
mitmproxy-ca8364404d8488fa4aff9f59830b10cae8ee3b8f.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))