fix exception name
explicitly import sys here
Merge pull request #404 from also/patch-1

fix exception name
Fixed broken format string

This fixes issue #317