-
Notifications
You must be signed in to change notification settings - Fork 302
DO NOT swallow the exceptions #279
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
Conversation
At least you will know why loading the library fails
| return ctypes.CDLL(lib) | ||
| except OSError as err: | ||
| logging.warning(err) | ||
| pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| pass |
| return ctypes.CDLL(lib) | ||
| except OSError as err: | ||
| logging.warning(err) | ||
| pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| pass |
|
Sorry for the delay, I definitely have sympathy for how frustrating it is to debug a swallowed exception. I've rebased this on recent changes and merged as a9e6276. |
…bi3-wheels * 'master' of https://github.com/ahupp/python-magic: log warning on ctypes load error, adapted from ahupp#279 smartos support, adapted from ahupp#132 rename no_json test to avoid duplicate function definitions handle unknown platforms gracefully in loader.py Clean up loader.py
At least you will know why loading the library fails