fix fatal bug - was trying to raise exceptions from strings