From 9f69540d572791839afca071acfcbb987a298c6c Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 18 Jul 2019 17:54:33 +0200 Subject: [PATCH] fix addon deconstruction --- mitmproxy/addonmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/addonmanager.py b/mitmproxy/addonmanager.py index 4214d6ea5..8a565a732 100644 --- a/mitmproxy/addonmanager.py +++ b/mitmproxy/addonmanager.py @@ -184,7 +184,7 @@ class AddonManager: raise exceptions.AddonManagerError("No such addon: %s" % n) self.chain = [i for i in self.chain if i is not a] del self.lookup[_get_name(a)] - self.invoke_addon(a, "done") + self.invoke_addon(addon, "done") def __len__(self): return len(self.chain)