Skip to content

Commit

Permalink
Check if output_rse_expression is there
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-McNab-UK committed Dec 13, 2024
1 parent 3d58251 commit 6083e41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/justin-wsgi-ui
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,10 @@ def createStage(jsonDict, user, simple = False, scopeName = None):
lifetimeDays = 0

# Store a catch all RSE expression to use when creating rules for
# output datasets other than per-RSE datasets
# output datasets other than per-RSE datasets
outputExpression = ''
if jsonDict['output_rse_expression']:
if 'output_rse_expression' in jsonDict \
and jsonDict['output_rse_expression']:
if not justin.stringIsExpression(jsonDict['output_rse_expression']):
return ('400 Bad Request', 'Invalid RSE expression')
else:
Expand Down

0 comments on commit 6083e41

Please sign in to comment.