From 05bb7288bf8d2a3859f3ff99e14726414e4edf7e Mon Sep 17 00:00:00 2001 From: Wainer Vandelli <Wainer.Vandelli@cern.ch> Date: Wed, 26 May 2010 14:00:30 +0000 Subject: [PATCH] Check if the DB info is valid before to use it --- Script/DeleteThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script/DeleteThread.py b/Script/DeleteThread.py index 3a1cfb0..92153a2 100755 --- a/Script/DeleteThread.py +++ b/Script/DeleteThread.py @@ -242,7 +242,7 @@ class DeleteThread(threading.Thread): self.dbLock.release() - if not filehealth == 'TRUNCATED': + if filehealth and not filehealth == 'TRUNCATED': success &= (castorfilesize == dbfilesize) success &= (dbchecksum.lower() == checksum.lower()) -- GitLab