From f8689c512b887da9ea2fae1a2d5386438c2488f6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 30 Apr 2022 15:21:40 +0200 Subject: [PATCH] i3-companion: don't error when cannot connect to dead polybar socket --- bin/i3-companion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/i3-companion b/bin/i3-companion index 617dde7..2796d92 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -280,7 +280,7 @@ def polybar(module): try: reader, writer = await asyncio.open_unix_connection(name) except OSError as e: - if e.errno != errno.ENXIO: + if e.errno not in (errno.ENXIO, errno.ECONNREFUSED): raise else: try: