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:
2a444f9
)
Fix stupid mistake.
author
daid
<daid303@gmail.com>
Mon, 8 Dec 2014 12:42:44 +0000
(13:42 +0100)
committer
daid
<daid303@gmail.com>
Mon, 8 Dec 2014 12:42:44 +0000
(13:42 +0100)
Cura/gui/app.py
patch
|
blob
|
history
diff --git
a/Cura/gui/app.py
b/Cura/gui/app.py
index ce167b26a35fcd37cfde0a8ac517e42765bc501f..38c79feea12c623d3e788b57e42ca68f41c7695c 100644
(file)
--- 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