i3-companion: don't error when cannot connect to dead polybar socket

This commit is contained in:
Vincent Bernat 2022-04-30 15:21:40 +02:00
parent 75f5a9cdda
commit f8689c512b

View file

@ -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: