diff options
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r-- | libmproxy/flow.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 58e4eea4..c4bf35a5 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -1096,11 +1096,8 @@ class State(object): Add an error response to the state. Returns the matching flow, or None if there isn't one. """ - if err.request: - f = self._flow_map.get(err.request) - if not f: - return None - else: + f = self._flow_map.get(err.request) + if not f: return None f.error = err if f.match(self._limit) and not f in self.view: |