change type of exception raised, fix docs typo
3 files changed