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