issue #488: 2.4-compatible syntax in unix.py.

issue510
David Wilson 6 years ago
parent b254051416
commit 14d393765b

@ -91,7 +91,8 @@ class Listener(mitogen.core.BasicStream):
def _unlink_socket(self):
try:
os.unlink(self.path)
except OSError as e:
except OSError:
e = sys.exc_info()[1]
# Prevent a shutdown race with the parent process.
if e.args[0] != errno.ENOENT:
raise

Loading…
Cancel
Save