fix bug where strings were raised, rather than Exceptions, reported by sc07kvm. fixes #7.