Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fetching of AssertionError message for Python 3
Exceptions in Python 3 no longer contain a `msg` attribute. Instead the exception message is accessible from the exception object directly. In order to maintain Python 2 support, attempt to fetch the message from `e.msg` and use `str(e)` as a default if the attribute does not exist. Fixes ColtonProvias#28
- Loading branch information