Fix typo in exception handling.
Merge pull request #250 from bjdelange/master

Fix typo in exception handling.