From e8860782f048f538da85d4e403149b10a8af11e5 Mon Sep 17 00:00:00 2001
From: Romain Broucquart <romain.broucquart@synchrotron-soleil.fr>
Date: Mon, 23 May 2022 15:26:26 +0200
Subject: [PATCH] Small Fix

* Fix the extractor in error message
---
 core/ArchiveExtractor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/ArchiveExtractor.py b/core/ArchiveExtractor.py
index b66027a..edfced8 100755
--- a/core/ArchiveExtractor.py
+++ b/core/ArchiveExtractor.py
@@ -419,8 +419,8 @@ class ArchiveExtractor:
         """
         self.logger.debug("Check that %s is archived."%attribute)
         if not self.extractor.IsArchived(attribute):
-            self.logger.error("Attribute '%s' is not archived in DB %s"%(attribute, extractor))
-            raise ValueError("Attribute '%s' is not archived in DB %s"%(attribute, extractor))
+            self.logger.error("Attribute '%s' is not archived in DB %s"%(attribute, self.extractor))
+            raise ValueError("Attribute '%s' is not archived in DB %s"%(attribute, self.extractor))
 
     def _cmd_with_retry(self, cmd, arg, retry=2):
         """
-- 
GitLab