diff --git a/controller.py b/controller.py --- a/controller.py +++ b/controller.py @@ -39,5 +39,7 @@ class Controller: events.append(event) except BlockingIOError: pass + except OSError: + self.dev = None return events \ No newline at end of file