Fix 100% coverage in misc.ipc

This commit is contained in:
Florian Bruhin 2016-11-08 21:56:54 +01:00
parent 23e7b3f551
commit df9bee33f4

View File

@ -362,7 +362,7 @@ class IPCServer(QObject):
@pyqtSlot()
def on_timeout(self):
"""Cancel the current connection if it was idle for too long."""
if self._socket is None:
if self._socket is None: # pragma: no cover
log.ipc.error("on_timeout got called with None socket!")
return
log.ipc.error("IPC connection timed out "