Skip to content

Commit

Permalink
fix(Resources): AREX submission error response can be a dict or a list
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Jun 28, 2024
1 parent 2c4c947 commit 7c19943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DIRAC/Resources/Computing/AREXComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ def _getArcJobID(self, executableFile, inputs, outputs, delegation):
response = result["Value"]

responseJob = response.json()["job"]
if isinstance(responseJob, list):
responseJob = responseJob[0]

if responseJob["status-code"] > "400":
self.log.warn(
"Failed to submit job",
Expand Down

0 comments on commit 7c19943

Please sign in to comment.