From 858db1066f7bcc3ea3e740b2f8d4a42e1a3e2601 Mon Sep 17 00:00:00 2001
From: Chris Burr <christopher.burr@cern.ch>
Date: Thu, 17 Oct 2024 23:46:01 +0200
Subject: [PATCH] fix: Handle more exceptions when loading pickled data in
 PluginUtilities

---
 src/LHCbDIRAC/TransformationSystem/Utilities/PluginUtilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/LHCbDIRAC/TransformationSystem/Utilities/PluginUtilities.py b/src/LHCbDIRAC/TransformationSystem/Utilities/PluginUtilities.py
index 05d38e0689..79b30458a5 100644
--- a/src/LHCbDIRAC/TransformationSystem/Utilities/PluginUtilities.py
+++ b/src/LHCbDIRAC/TransformationSystem/Utilities/PluginUtilities.py
@@ -1012,7 +1012,7 @@ get from BK"
                 # print '*****'
                 # print '\n'.join( ['%s %s' % ( key, val ) for key, val in self.cachedLFNProcessedPath.items()] )
                 break
-            except (OSError, LookupError) as e:
+            except (OSError, LookupError, pickle.UnpicklingError, EOFError) as e:
                 self.logException("Cache file could not be loaded", cacheFile, lException=e)
 
     def getCachedRunLFNs(self, runID, paramValue):
-- 
GitLab