Skip to content

Commit

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

(cherry picked from commit 4fbeb46)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed May 22, 2024
1 parent 727807a commit e7e55db
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 @@ -2530,8 +2530,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__)


from frappe.utils.error import log_error
Expand Down

0 comments on commit e7e55db

Please sign in to comment.