[xrandr-test] Catch all exceptions if i3 Subscription fails
This commit is contained in:
parent
d05ff39f02
commit
22d85d6d1d
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Module(core.module.Module):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
i3.Subscription(self._output_update, "output")
|
i3.Subscription(self._output_update, "output")
|
||||||
except NameError:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _output_update(self, event, data, _):
|
def _output_update(self, event, data, _):
|
||||||
|
@ -121,4 +121,5 @@ class Module(core.module.Module):
|
||||||
|
|
||||||
self._refresh(event)
|
self._refresh(event)
|
||||||
|
|
||||||
|
|
||||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
Loading…
Reference in a new issue