Article View: linux.debian.bugs.dist
Article #6420Bug#1155540: mitmproxy: 0010-remove-return-in-finally.patch breaks loading scripts
From: Anton Khirnov
Date: Fri, 27 Nov 2026 12:20
Date: Fri, 27 Nov 2026 12:20
23 lines
2462 bytes
2462 bytes
Source: mitmproxy
Version: 8.1.1-5
Severity: important
Tags: patch
Dear Maintainer,
Debian patch '0010-remove-return-in-finally.patch' breaks the loading of
all custom scripts, since it removes the only return statement in
load_script(). The correct thing to do is moving the return to the end
of the try: block rather than dropping it:
@@ -36,6 +36,7 @@
loader.exec_module(m)
if not getattr(m, "name", None):
m.name = path # type: ignore
+ return m
except Exception as e:
script_error_handler(path, e, msg=str(e))
finally:
Cheers,
--
Anton Khirnov
Technical Details
Message-ID:
<O435L-esIc-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Anton Khirnov <anton@khirnov.net> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155540: mitmproxy: 0010-remove-return-in-finally.patch breaks loading scripts Date: Fri, 27 Nov 2026 13:20:01 +0100 Message-ID: <O435L-esIc-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 27 12:17:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Anton Khirnov <anton@khirnov.net>, 1155540@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+python@tracker.debian.org X-Debian-Pr-Message: report 1155540 X-Debian-Pr-Package: src:mitmproxy X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: mitmproxy Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=nuljuU0P; dkim-atps=neutral Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0 X-Greylist: delayed 398 seconds by postgrey-1.37 at buxtehude; Fri, 27 Nov 2026 12:15:58 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005374 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 23 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2026 13:09:07 +0100 X-Original-Message-ID: <179578134790.11301.17989446100170671552.reportbug@daenerys.khirnov.net>