From 8eabd33b578aed9670c1cef62a24e2dc73370b79 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 1 Jul 2024 23:43:48 +0700 Subject: [PATCH] remove enum prefix for older Python versions --- xpra/scripts/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py index bf92f53523..271d479d55 100755 --- a/xpra/scripts/main.py +++ b/xpra/scripts/main.py @@ -3016,7 +3016,8 @@ def multimode(displays): def may_cleanup_socket(state, display, sockpath, clean_states=(DotXpra.DEAD,)) -> None: - sys.stdout.write(f"\t{state} session at {display}") + state_str = getattr(state, "value", str(state)) + sys.stdout.write(f"\t{state_str} session at {display}") if state in clean_states: try: stat_info = os.stat(sockpath)