Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is_smartcard_connected should handle card access error gracefully #80

Closed
kushaldas opened this issue Jan 13, 2022 · 1 comment
Closed

Comments

@kushaldas
Copy link
Owner

The following happened in Tumpa when I removed the card randomly.

.venv/bin/python3 ./run.py
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: NotTransacted', /home/kdas/.cargo/registry/src/github.com-1ecc6299db9ec823/talktosc-0.1.1/src/lib.rs:81:70
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "/home/kdas/code/tumpa/src/tumpa/__init__.py", line 31, in run
    result = rjce.is_smartcard_connected()
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: NotTransacted
@kushaldas
Copy link
Owner Author

This is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant