This commit is contained in:
Jean-Paul Calderone 2021-01-12 14:36:42 -05:00
parent 7ca3c86a35
commit ec92f0362d

View File

@ -119,7 +119,7 @@ def parse_or_exit_with_explanation(argv, stdout=sys.stdout):
msg = e.args[0].decode(get_io_encoding())
except Exception:
msg = repr(e)
for f in stdout, open("debug.txt", "wt"):
for f in stdout, open("debug.txt", "wb"):
print("%s: %s\n" % (sys.argv[0], quote_output(msg, quotemarks=False)), file=f)
sys.exit(1)
return config