[xrandr-test] Catch all exceptions if i3 Subscription fails

This commit is contained in:
Naya Verdier 2020-07-25 11:33:42 -07:00
parent d05ff39f02
commit 22d85d6d1d
No known key found for this signature in database
GPG key ID: 1A59389D46A94A4C

View file

@ -47,7 +47,7 @@ class Module(core.module.Module):
try:
i3.Subscription(self._output_update, "output")
except NameError:
except Exception:
pass
def _output_update(self, event, data, _):
@ -121,4 +121,5 @@ class Module(core.module.Module):
self._refresh(event)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4