diff options
-rw-r--r-- | mitmproxy/options.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py index 7389df1f..0cc5fee1 100644 --- a/mitmproxy/options.py +++ b/mitmproxy/options.py @@ -42,7 +42,10 @@ class Options(object): return self.__class__(**self._opts) def __getattr__(self, attr): - return self._opts[attr] + if attr in self._opts: + return self._opts[attr] + else: + raise AttributeError() def __setattr__(self, attr, value): if attr not in self._opts: |