From 4f94a9e38b9f35e8f8c92ac5a03ad586ac4308ac Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 7 Dec 2022 21:35:53 +0000 Subject: [PATCH] exe: survive ascii locales --- scripts/pyinstaller/loader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pyinstaller/loader.py b/scripts/pyinstaller/loader.py index 2bb3c710..89ace661 100644 --- a/scripts/pyinstaller/loader.py +++ b/scripts/pyinstaller/loader.py @@ -10,7 +10,10 @@ if possible, for performance and security reasons, please use this instead: https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py """ -print(v.replace("\n", "\nā–’ā–Œ ")[1:] + "\n") +try: + print(v.replace("\n", "\nā–’ā–Œ ")[1:] + "\n") +except: + print(v.replace("\n", "\n|| ")[1:] + "\n") import re