From a8f7c30aa027fba7ea2074ce439ed68abb76701f Mon Sep 17 00:00:00 2001 From: harsh vijay Date: Mon, 13 Mar 2017 02:23:52 +0530 Subject: [PATCH] Fix crash when duplicating flow --- mitmproxy/flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitmproxy/flow.py b/mitmproxy/flow.py index f48c3d9ff..6b68c8b26 100644 --- a/mitmproxy/flow.py +++ b/mitmproxy/flow.py @@ -113,8 +113,8 @@ class Flow(stateobject.StateObject): def copy(self): f = super().copy() f.id = str(uuid.uuid4()) - f.live = False; - if self.reply != None: + f.live = False + if self.reply is not None: f.reply = controller.DummyReply() return f