Fix allready running handling for Python3. #1626

This commit is contained in:
Ubuntu 2019-06-19 21:37:42 +00:00
commit ce50a1c27d

View file

@ -54,7 +54,7 @@ class PosixProcess(object):
self.lasterror = False
return self.lasterror
except socket.error as e:
if 'Address already in use' in e:
if 'Address already in use' in str(e):
self.lasterror = True
return self.lasterror
except AttributeError: