chiark / gitweb /
Fix stupid mistake.
authordaid <daid303@gmail.com>
Mon, 8 Dec 2014 12:42:44 +0000 (13:42 +0100)
committerdaid <daid303@gmail.com>
Mon, 8 Dec 2014 12:42:44 +0000 (13:42 +0100)
Cura/gui/app.py

index ce167b26a35fcd37cfde0a8ac517e42765bc501f..38c79feea12c623d3e788b57e42ca68f41c7695c 100644 (file)
@@ -90,7 +90,10 @@ class CuraApp(wx.App):
                        sock.bind(("127.0.0.1", port))
                        while True:
                                data, addr = sock.recvfrom(2048)
-                               wx.callAfter(self.mainWindow.OnDropFiles, data.split('\0'))
+                               try:
+                                       wx.CallAfter(self.mainWindow.OnDropFiles, data.split('\0'))
+                               except Exception as e:
+                                       warnings.warn("File at {p} cannot be read: {e}".format(p=data, e=str(e)))
                except:
                        pass