From 45594466731e984fc823d536ed0cc235d867da08 Mon Sep 17 00:00:00 2001 From: Dario Mapelli Date: Fri, 21 Jan 2022 18:42:18 +0100 Subject: [PATCH] fix not py3-compatible pycurl.error handling in RESTInteractions (#6996) --- src/python/RESTInteractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/RESTInteractions.py b/src/python/RESTInteractions.py index bffed3f9c9..0f065a6b39 100644 --- a/src/python/RESTInteractions.py +++ b/src/python/RESTInteractions.py @@ -44,7 +44,7 @@ def retriableError(ex): if isinstance(ex, pycurl.error): #28 is 'Operation timed out...' #35,is 'Unknown SSL protocol error', see https://github.com/dmwm/CRABServer/issues/5102 - return ex[0] in [28, 35] + return ex.args[0] in [28, 35] return False