X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=cura.git;a=blobdiff_plain;f=Cura%2Fgui%2Fapp.py;h=47932c60c5e163b1415a7f1536cd9a15ba8af560;hp=dffa855ebbdef70fa711efba10f7b0ef5232511e;hb=6208201bafdeaf82883181471c6da3a41283cfe7;hpb=f395f7e33ee4f62fe851389b529cdf10108f7cf1 diff --git a/Cura/gui/app.py b/Cura/gui/app.py index dffa855e..47932c60 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -63,11 +63,14 @@ class CuraApp(wx.App): def Win32SocketListener(self, port): import socket - sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) - sock.bind(("127.0.0.1", port)) - while True: - data, addr = sock.recvfrom(2048) - self.mainWindow.OnDropFiles(data.split('\0')) + try: + sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + sock.bind(("127.0.0.1", port)) + while True: + data, addr = sock.recvfrom(2048) + self.mainWindow.OnDropFiles(data.split('\0')) + except: + pass def afterSplashCallback(self): #These imports take most of the time and thus should be done after showing the splashscreen