Commits

Dusty Phillips committed 7737db5

Less explosive if the kivy parser crashes.

Comments (0)

Files changed (1)

                 Builder._apply_rule(widget, parser.root, parser.root)
                 self.kv_container.add_widget(widget)
             except (SyntaxError, ParserException) as e:
-                content = Label(text=str(e))
+                content = Label(text=str(e), text_size=(350, None))
                 popup = Popup(title="Parse Error in Kivy Language Markup",
                     content=content, text_size=(350, None),
                     size_hint=(None, None), size=(400, 400))
                 popup.open()
+            except:
+                popup = Popup(title="Boom",
+                    content=Label(text="Something horrible happened while parsing your Kivy Language", text_size=(350, None)),
+                    text_size=(350, None),
+                    size_hint=(None, None), size=(400, 400))
+                popup.open()
 
 
 class KivyCatalogApp(App):