newer error syntax

works on python3
Merge pull request #11 from collinanderson/raiseerror

newer error syntax