Commit df478a59 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Let Python network Transport retry if endpoint is missing

If the endpoint (such as Luxid or WConfd) isn't running, don't fail
immediately. Instead retry (within the given timeout) and try to
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 3bc9fc95
......@@ -107,7 +107,7 @@ class Transport:
except socket.error, err:
error_code = err.args[0]
if error_code in (errno.ENOENT, errno.ECONNREFUSED):
raise errors.NoMasterError(address)
raise utils.RetryAgain()
elif error_code in (errno.EPERM, errno.EACCES):
raise errors.PermissionError(address)
elif error_code == errno.EAGAIN:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment