diff --git a/core/ArchiveExtractor.py b/core/ArchiveExtractor.py
index b66027a6f045eee08a9d32a49032dbe4fcf2073c..edfced8b868343f0b7911b0a132f52a3cdfabbaa 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):
         """