exception added and fixed a typo
Merge pull request #1 from bes89/patch-1

exception added and fixed a typo