Fix TypeError in exception handler

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

 
  Python3 Nose
canceled #826612597
python3