Commits

Ronny Pfannschmidt committed 870b261

simple traces for the fail ui on gui internal error

Comments (0)

Files changed (1)

pytest_gui/gtkui/filefails.py

             self.collection.selected_item = self.collection[0]
 
     def on_collection__selection_changed(self, _):
-        repr = self.collection.selected_item.longrepr
+        try:
+            print self.collection.selected_item
+
+            repr = self.collection.selected_item.longrepr
+        except:
+            import traceback
+            tb = traceback.format_exec()
+            repr = 'INTERNAL GUI ERROR>\n' + tb
+
         self.textview.get_buffer().set_text(repr)