Skip to content

Commit

Permalink
Catch timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcuzz committed Jan 13, 2024
1 parent 3f66422 commit e3d1e3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def run(self):
)

while self._run_flag:
self._read_homekey()
try:
self._read_homekey()
except TimeoutError:
log.error("Recieved Timeout error")

def get_reader_key(self, request: ReaderKeyRequest) -> ReaderKeyResponse:
response = ReaderKeyResponse(
Expand Down

0 comments on commit e3d1e3d

Please sign in to comment.