From 415d9328ebf18b94e622bae9c799c1c0ceef1751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 14 Mar 2017 22:35:29 -0400 Subject: [PATCH] In demo mode, do not install handler manually Two reasons: 1. this way we can check that the handler is correctly installed 2. even if the handler is correctly installed, we'd install it a second time (since __main__ module is completely separate from the module import through .pth), and log the exception twice. --- systemd_coredump_exception_handler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/systemd_coredump_exception_handler.py b/systemd_coredump_exception_handler.py index d8d514900c..6fa200f8c5 100644 --- a/systemd_coredump_exception_handler.py +++ b/systemd_coredump_exception_handler.py @@ -155,8 +155,6 @@ def install(nocheck=False): pass if __name__ == '__main__': - install(True) - # throw a nested test exception to show the effect def f(): a = 3 -- 2.9.3