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

Fix or mitigate bare/overgeneral exception handlers #5

Merged
merged 4 commits into from
Jun 29, 2015

Conversation

moreati
Copy link
Contributor

@moreati moreati commented Jun 29, 2015

No description provided.

Errors should not pass sliently, bare except blocks risk hiding errors
that should not be caught such as SyntaxError
CardMonitoringThread and ReaderMonitoringThread encapsulate lots of code
, any which could raise a wide variety of exceptions. Fixing this is not
feasible at the moment, the best we can do is provide better feedback
about the origins of an exception - by printing the full traceback,
including the line numbers.
… warning

Importing smartcard.pyscard should either succeed in using the generated
scard.py wrapper, or fail. Silently importing _scard.so in place of the
wrapper risks creating hard-to-diagnose heisenbugs.
LudovicRousseau added a commit that referenced this pull request Jun 29, 2015
Fix or mitigate bare/overgeneral exception handlers
@LudovicRousseau LudovicRousseau merged commit fe57fb2 into LudovicRousseau:master Jun 29, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants