From a86a3427fcc1105151da04b482b967a70d7eaf3c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 14 May 2014 14:38:00 +0200 Subject: [PATCH] Fix broken faulthandler condition --- qutebrowser/utils/earlyinit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/earlyinit.py b/qutebrowser/utils/earlyinit.py index e4808fd6e..7206c7a02 100644 --- a/qutebrowser/utils/earlyinit.py +++ b/qutebrowser/utils/earlyinit.py @@ -33,7 +33,7 @@ def init_faulthandler(): This print a nice traceback on segfauls. """ - if sys.stderr is not None: + if sys.stderr is None: # When run with pythonw.exe, sys.stderr can be None: # https://docs.python.org/3/library/sys.html#sys.__stderr__ # If we'd enable faulthandler in that case, we just get a weird