Define missing error to prevent a NameError
Merge pull request #47 from misfo/fix-name-error

Define missing error to prevent a NameError