DIRACGrid/DIRAC — Issue #496: dirac-dms-remove-files bug
Author: elisal
Created: 2012-02-09 16:32:21+00:00
State: open

Hi,
when the reason of failure of the removal is a dictionary (like in the case below) and not a string, the script fails:

> dirac-dms-remove-files /lhcb/user/b/brook/cern-tape/dcache-client-1.6.7-4.i386.rpm
/home/elisal/dev/Linux_x86_64_glibc-2.5/lib/python2.6/site-packages/MySQL_python-1.2.2-py2.6-linux-x86_64.egg/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
DEBUG: lfn, reason: /lhcb/user/b/brook/cern-tape/dcache-client-1.6.7-4.i386.rpm {'LcgFileCatalogCombined': 'Permission denied'}
Traceback (most recent call last):
File "/home/elisal/dev/DIRAC/DataManagementSystem/scripts/dirac-dms-remove-files.py", line 47, in
errorReasons[reason] = []
TypeError: unhashable type: 'dict'