From 1d536f64d5de8b4ca3fe17814d4c0fbfb1b0f881 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 9 Dec 2013 22:34:47 +1300 Subject: [PATCH] Small workaround to make mitmproxy work again. Further work is required to make scripts work again, though. --- libmproxy/console/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index b2c1deef9..e5a0283c1 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -173,7 +173,7 @@ class StatusBar(common.WWrap): if opts: r.append("[%s]"%(":".join(opts))) - if self.master.script: + if self.master.scripts: r.append("[script:%s]"%self.master.script.path) if self.master.debug: @@ -880,7 +880,7 @@ class ConsoleMaster(flow.FlowMaster): ) ) elif k == "s": - if self.script: + if self.scripts: self.load_script(None) else: self.path_prompt(