Bug #12418
Updated by Peter Amstutz about 7 years ago
<pre> 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr Unexpected error from fs_access 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr Traceback (most recent call last): 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr File "/usr/lib/python2.7/dist-packages/cwltool/draft2tool.py", line 578, in collect_output 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr prefix = fs_access.glob(outdir) 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr File "/usr/lib/python2.7/dist-packages/arvados_cwl/fsaccess.py", line 86, in glob 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr patternsegments = rest.split("/") 2017-10-08_14:17:52 e51c5-8i9sb-xo9w8fidi304bcv 6764 0 stderr AttributeError: 'NoneType' object has no attribute 'split' </pre> The branch right before this: output collection is empty, so bool("collection") == False, as a result it doesn't exit early, however, because "rest" is None, it crashes on the next line. <pre> if collection and not rest: return [pattern] patternsegments = rest.split("/") </pre> We know @rest Should be using @collection is not None@ Seems that bool(collection) is False, this means collection must be None (?) Testing indicates that bool(collection) == True even when collection is empty.