Fix --pdb when a non-printable exception happens

Fixes #8.