dmwm / DBS

CMS Dataset Bookkeeping Service
Apache License 2.0
7 stars 21 forks source link

Error Handling in DataOps script DBS3SetFileStatus.py #210

Closed ericvaandering closed 10 years ago

ericvaandering commented 10 years ago

Original TRAC ticket 4236 reported by giffels In case of invalidating a file, which is not in DBS, the error message is not clear to the user.

Traceback (most recent call last):
  File "DBS3SetFileStatus.py", line 141, in <module>
    main()
  File "DBS3SetFileStatus.py", line 136, in main
    updateFileStatus(opts.status, opts.recursive, files=files, blocks=blocks)
  File "DBS3SetFileStatus.py", line 85, in updateFileStatus
    flst = isFileValid(files=files, blocks=blocks, fstatus=fstatus)
  File "DBS3SetFileStatus.py", line 26, in isFileValid
    if rslt[0]['is_file_valid'] == fstatus :
IndexError: list index out of range
ericvaandering commented 10 years ago

Author: giffels I have fixed the problem.

ericvaandering commented 10 years ago

Author: giffels Committed to svn.