Skip to content

Commit 5359d7d

Browse files
Merge pull request steam-bell-92#1472 from Tomeshwari-02/fix/search-projects-encoding
Avoid search output encoding crashes
2 parents c7caf6b + d98a187 commit 5359d7d

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)