From 22d85d6d1d1a4942bbb1001eba76c1ccaeb9fadc Mon Sep 17 00:00:00 2001 From: Naya Verdier Date: Sat, 25 Jul 2020 11:33:42 -0700 Subject: [PATCH] [xrandr-test] Catch all exceptions if i3 Subscription fails --- bumblebee_status/modules/core/xrandr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/modules/core/xrandr.py b/bumblebee_status/modules/core/xrandr.py index a3fe1b7..7060cf1 100644 --- a/bumblebee_status/modules/core/xrandr.py +++ b/bumblebee_status/modules/core/xrandr.py @@ -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