Skip to content

Commit

Permalink
allow for inputdata arg to me missing. Fix #8404 (#8407)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored May 15, 2024
1 parent c699806 commit 1799705
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 @@ -342,7 +342,7 @@ def validate(self, apiobj, method, api, param, safe): #pylint: disable=unused-ar
validate_str("publishname2", param, safe, RX_ANYTHING, optional=True)

if safe.kwargs['jobtype'] == 'PrivateMC':
if param.kwargs['inputdata'] or 'inputblocks' in param.kwargs:
if param.kwargs.get('inputdata', None) or 'inputblocks' in param.kwargs:
msg = "Invalid 'inputdata' parameter."
msg += " Job type PrivateMC does not take any input dataset."
msg += " If you really intend to run over an input dataset, then you must use job type Analysis."
Expand Down

0 comments on commit 1799705

Please sign in to comment.