chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
452f0c4
)
Fix stupid mistake.
author
daid
<daid303@gmail.com>
Mon, 8 Dec 2014 12:42:44 +0000
(13:42 +0100)
committer
Youness Alaoui
<kakaroto@kakaroto.homelinux.net>
Thu, 15 Jan 2015 18:54:37 +0000
(13:54 -0500)
Cura/gui/app.py
patch
|
blob
|
history
diff --git
a/Cura/gui/app.py
b/Cura/gui/app.py
index 56e4fa04e134ed0ec2f106ecbf91e9bafa490de9..42e46feb20fb5d3aa345aa5120fed5f2efe9d636 100644
(file)
--- 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