From 7fa5b23ce3de5e473edd58088bdf20c7ce489d90 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 17 Jul 2021 04:12:14 +0200 Subject: [PATCH] sfx: fix color bleed on flock errors --- scripts/sfx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sfx.py b/scripts/sfx.py index 99d2f781..73ffd5d7 100644 --- a/scripts/sfx.py +++ b/scripts/sfx.py @@ -380,7 +380,7 @@ def run(tmp, j2): fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) except Exception as ex: if not WINDOWS: - msg("\033[31mflock:", repr(ex)) + msg("\033[31mflock:{!r}\033[0m".format(ex)) t = threading.Thread(target=utime, args=(tmp,)) t.daemon = True