Skip to content

Commit

Permalink
Merge pull request #203 from Nitrokey/fix-dev-remove
Browse files Browse the repository at this point in the history
Fix/catch device removal error from fido2 lib
  • Loading branch information
daringer committed Jan 25, 2024
2 parents 90ce8c8 + c6015af commit 344a9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nitrokeyapp/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def detect_removed_devices(self) -> None:
if self.devices:
try:
nk3_list = [device.uuid() for device in Nitrokey3Device.list()]
except OSError as e:
except Exception as e:
logger.info(f"detect removed failed: {e}")
return
logger.info(f"list nk3: {nk3_list}")
Expand Down
2 changes: 1 addition & 1 deletion nitrokeyapp/secrets_tab/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run(self) -> None:
# TODO: catch a more specific exception
pass
except Exception as e:
logger.info("check device job failed: ", repr(e))
logger.info(f"check device job failed: {e}")
compatible = False

self.device_checked.emit(compatible)
Expand Down

0 comments on commit 344a9a4

Please sign in to comment.