windows fixes (#767)

This commit is contained in:
Charlotte Weaver
2019-06-11 11:41:27 -07:00
committed by GitHub
parent 0f17b84dc1
commit afeddad343
4 changed files with 26 additions and 14 deletions
+7
View File
@@ -1,3 +1,4 @@
import errno
import platform
from PySide2.QtCore import QObject, Signal
@@ -60,6 +61,12 @@ class Emitter:
except EOFError:
# Server done
break
except OSError as e:
if e.errno == errno.EBADF:
break
else:
self.signals.error.emit(str(e))
break
except Exception as e:
self.signals.error.emit(str(e))
break