Skip to content

Commit

Permalink
fix: Use true stderr for dumping trace (#26524)
Browse files Browse the repository at this point in the history
closes #26302

(cherry picked from commit 4fbeb46)
  • Loading branch information
ankush authored and mergify[bot] committed May 22, 2024
1 parent cf944ce commit a0eaf73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2427,8 +2427,8 @@ def _register_fault_handler():
import sys

# Some libraries monkey patch stderr, we need actual fd
if isinstance(sys.stderr, io.TextIOWrapper):
faulthandler.register(signal.SIGUSR1, file=sys.stderr)
if isinstance(sys.__stderr__, io.TextIOWrapper):
faulthandler.register(signal.SIGUSR1, file=sys.__stderr__)


if _tune_gc:
Expand Down

0 comments on commit a0eaf73

Please sign in to comment.