Skip to content

Commit 532abfa

Browse files
sharkykhmedariox
authored andcommitted
Don't enable faulthandler if running pythonw (#6525)
1 parent c74b181 commit 532abfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/unrar2/windows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
from .rar_exceptions import *
3636

37-
if sys.version_info > (3,3):
37+
if sys.version_info > (3,3) and sys.stderr is not None:
3838
import faulthandler
3939
faulthandler.enable()
4040

0 commit comments

Comments
 (0)