Print

Print


pyxroot.client.FileSystem.copy crashes if the arguments are invalid with the error:

/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_88/xrootd/4.5.0/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/XRootD/client/filesystem.py in copy(self, source, target, force)
     65                    object and None
     66     """
---> 67     result = self.__fs.copy(source=source, target=target, force=force)[0]
     68     return XRootDStatus(result), None
     69

KeyError: 0

It happens as FileSystem::Copy returns Status instead of tuple(Status, None) if the the call to FileSystem::Prepare fails. See PyXRootDFileSystem.cc#L59 and PyXRootDCopyProcess.cc#L122.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"[pyxrootd] KeyError in pyxroot.client.FileSystem.copy (#633)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/633"}}}

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1