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: