DIRACGrid/DIRAC — pull request #952 by KrzysztofCiba (2012-09-19 11:46:37+00:00)
Title: FIX: OSError 

Fix for ```OSError``` when removing obsolete local file:

```2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent ERROR: DIPStorage.__putFile: The source local file does not exist. ./00020148_00007967.tar
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: Exception while calling > method
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: == EXCEPTION ==
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: :[Errno 2] No such file or directory: './00020148_00007967.tar'
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: File "/opt/dirac/versions/v7r9p1_1347881362/DIRAC/Core/Base/AgentModule.py", line 307, in am_secureCall
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: result = functor( *args )
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT:
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: File "/opt/dirac/versions/v7r9p1_1347881362/LHCbDIRAC/DataManagementSystem/Agent/LogUploadAgent.py", line 100, in execute
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: res = self.rm.replicate( lfn, targetSE, destPath = destination )
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT:
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: File "/opt/dirac/versions/v7r9p1_1347881362/DIRAC/DataManagementSystem/Client/ReplicaManager.py", line 1579, in replicate
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: res = self.__replicate( lfn, destSE, sourceSE, destPath, localCache )
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT:
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: File "/opt/dirac/versions/v7r9p1_1347881362/DIRAC/DataManagementSystem/Client/ReplicaManager.py", line 1671, in __replicate
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: os.remove( localFile )
2012-09-18 12:44:15 UTC DataManagement/LogUploadAgent EXCEPT: =============== ```