Skip to content

Commit 454c2bf

Browse files
committed
Add PermissionDenied exception to retry decorator
We have seen several cases where Pub tasks fail because the worker gets a permission denied error, immediately after successfully logging in. We believe that these are false negatives, which can be resolved by a simple retry.
1 parent b4b486f commit 454c2bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kobo/xmlrpc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@ def request(self, *args, **kwargs):
479479
except KeyboardInterrupt:
480480
raise
481481
except (socket.error, socket.herror, socket.gaierror, socket.timeout,
482-
httplib.CannotSendRequest, xmlrpclib.ProtocolError) as ex:
482+
httplib.CannotSendRequest, xmlrpclib.ProtocolError,
483+
xmlrpclib.Fault) as ex:
483484
if i >= self.retry_count:
484485
raise
485486
retries_left = self.retry_count - i

0 commit comments

Comments
 (0)