Skip to content

Commit

Permalink
fix not py3-compatible pycurl.error handling in RESTInteractions (#6996)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapellidario authored Jan 21, 2022
1 parent 1177527 commit 4559446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/RESTInteractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4559446

Please sign in to comment.