Skip to content

Commit d98a187

Browse files
author
Tomeshwari-02
committed
Avoid search output encoding crashes
1 parent 5d3565d commit d98a187

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

search_projects.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
import sys
1111
import json
1212

13+
if hasattr(sys.stdout, "reconfigure"):
14+
sys.stdout.reconfigure(errors="replace")
15+
if hasattr(sys.stderr, "reconfigure"):
16+
sys.stderr.reconfigure(errors="replace")
17+
1318
# ─────────────────────────────────────────────
1419
# Project Registry
1520
# ─────────────────────────────────────────────

0 commit comments

Comments
 (0)