anim_rigs, int_hw_probe: guard stdout like the other tools (#1428)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ItsNotRexed
2026-11-22 09:46:20 -05:00
co-authored by Claude Opus 5.5
parent 0186bc2175
commit 6a6704df15
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -165,4 +165,8 @@ def main():
if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
sys.exit(main())
+4
View File
@@ -760,4 +760,8 @@ def main(argv=None):
if __name__ == "__main__":
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
sys.stdout.reconfigure(errors="replace")
except (AttributeError, ValueError, OSError):
pass
sys.exit(main())