Skip to content

Commit

Permalink
Merge pull request #338 from Yubico/fix/permission
Browse files Browse the repository at this point in the history
Smaller fixes
  • Loading branch information
fdennis authored Feb 3, 2023
2 parents 864fbee + 5682fdd commit 2a81df9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ykman-cli/py/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# -*- coding: utf-8 -*-

import sys
from ykman.cli.__main__ import main
try:
from ykman._cli.__main__ import main
except (ModuleNotFoundError, ImportError):
from ykman.cli.__main__ import main


def run(argv):
Expand Down
4 changes: 4 additions & 0 deletions ykman-gui/py/yubikey.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def wrapped(*args, **kwargs):
logger.error('Failed to open device', exc_info=e)
return failure('open_device_failed')

except TypeError as e:
logger.error('Failed to open device', exc_info=e)
return failure('open_device_failed')

except Exception as e:
if str(e) == 'Incorrect padding':
return failure('incorrect_padding')
Expand Down

0 comments on commit 2a81df9

Please sign in to comment.