From: daid Date: Mon, 8 Dec 2014 12:42:44 +0000 (+0100) Subject: Fix stupid mistake. X-Git-Tag: lulzbot-14.12~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fc7fb9ea5e96b91b04ec6d191337568e3e3697d6;p=cura.git Fix stupid mistake. --- diff --git a/Cura/gui/app.py b/Cura/gui/app.py index 56e4fa04..42e46feb 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -91,7 +91,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