python lib: fix error message in try-except block
Merge pull request #102 from teharrison/master

python lib: fix error message in try-except block