Merge pull request #5050 from erasche/fix-ufr-7036

Safely handle possible None value encountered in processing and execution of post-job action arguments
This commit is contained in:
Dannon Baker
2017-11-21 13:19:52 -05:00
committed by GitHub
+1 -1
View File
@@ -228,7 +228,7 @@ class ColumnSetAction(DefaultJobAction):
for dataset_assoc in job.output_datasets:
if action.output_name == '' or dataset_assoc.name == action.output_name:
for k, v in action.action_arguments.items():
if v != '':
if v:
# Try to use both pure integer and 'cX' format.
if v[0] == 'c':
v = v[1:]