`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](https://github.com/xrootd/xrootd/blob/master/bindings/python/src/PyXRootDFileSystem.cc#L59) and [PyXRootDCopyProcess.cc#L122](https://github.com/xrootd/xrootd/blob/master/bindings/python/src/PyXRootDCopyProcess.cc#L122). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: 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