Fix TypeError in exception handler

2 jobs for devel/wayland
Status Job ID Name Coverage
  Python2 Nose
canceled #826674670
python2

 
  Python3 Nose
canceled #826674690
python3