Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Anton Khirnov
Fri, 27 Nov 2026 12:20
Bug#1155540: mitmproxy: 0010-remove-return-in-finally.patch breaks loading scripts
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads