From c670acba1fc2f6d4ebbcb085574bd36265f1db8a Mon Sep 17 00:00:00 2001 From: Etoh Date: Wed, 7 Feb 2024 19:11:46 +0000 Subject: [PATCH] Don't log 32/64-bit cryptography 'frozen zipimport' errors No need to log ":259: UserWarning: You are using cryptography on a 32-bit Python on a 64-bit Windows Operating System. Cryptography will be significantly faster if you switch to using a 64-bit Python." all the time. --- syncplay/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index 076c509..2c0e7d5 100755 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -211,7 +211,8 @@ def blackholeStdoutForFrozenWindow(): self._file = open(path, 'a', encoding='utf-8') # TODO: Handle errors. if self._file is not None: - self._file.write(text) + if not text.startswith(""): + self._file.write(text) self._file.flush() def flush(self):