mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +02:00
i3-companion: don't error when cannot connect to dead polybar socket
This commit is contained in:
parent
75f5a9cdda
commit
f8689c512b
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ def polybar(module):
|
||||||
try:
|
try:
|
||||||
reader, writer = await asyncio.open_unix_connection(name)
|
reader, writer = await asyncio.open_unix_connection(name)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.ENXIO:
|
if e.errno not in (errno.ENXIO, errno.ECONNREFUSED):
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue