Skip to content

Commit

Permalink
handle inputdata='' like missing (#8399)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored May 13, 2024
1 parent 82cb237 commit c699806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CRABInterface/RESTUserWorkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def validate(self, apiobj, method, api, param, safe): #pylint: disable=unused-ar
## Once we don't care anymore about backward compatibility with client < 3.3.1511,
## we can uncomment the 1st line below and delete the next 4 lines.
#validate_str("inputdata", param, safe, RX_DATASET, optional=True)
if safe.kwargs['jobtype'] == 'Analysis' and 'inputdata' in param.kwargs:
if safe.kwargs['jobtype'] == 'Analysis' and param.kwargs.get('inputdata', None): # beware! #8372
inputDataFromRucio = ':' in param.kwargs['inputdata'] # scope:name format
if inputDataFromRucio:
validate_str("inputdata", param, safe, RX_RUCIODID, optional=True)
Expand Down

0 comments on commit c699806

Please sign in to comment.