• Daniel Quinn's avatar
    Use `str()` instead of `.message` for exception · 23405f73
    Daniel Quinn authored
    In a case where a `KeyError` is raised, the exception is caught, but then it tried to reference `ex.message`, which doesn't exist for KeyErrors in modern versions of Python.  Using `str(ex)` should deliver the same result.
    23405f73
Name
Last commit
Last update
doc Loading commit data...
src/pyocr Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile Loading commit data...
README.markdown Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
update_test_data.sh Loading commit data...