From ca0dc26ef4a00a199e82c7e136cd1ed0b92411d8 Mon Sep 17 00:00:00 2001 From: vylion Date: Mon, 26 Oct 2020 09:32:09 +0100 Subject: [PATCH] Fixed archivist.readers_pass(...) --- archivist.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/archivist.py b/archivist.py index 9ff340e..388b78a 100644 --- a/archivist.py +++ b/archivist.py @@ -124,16 +124,17 @@ class Archivist(object): if dirname.startswith("chat_"): cid = dirname[5:] try: - reader = self.load_reader(cid) + reader = self.get_reader(cid) # self.logger.info("Chat {} contents:\n{}".format(cid, reader.card.dumps())) - self.logger.info("Successfully read {} ({}) chat.\n".format(cid, reader.title())) + self.logger.info("Successfully passed through {} ({}) chat.\n".format(cid, reader.title())) if self.bypass: # I forgot what I made this for reader.set_period(random.randint(self.max_period // 2, self.max_period)) elif reader.period() > self.max_period: reader.set_period(self.max_period) + self.store(*reader.archive()) yield reader except Exception as e: - self.logger.error("Failed reading {}".format(dirname)) + self.logger.error("Failed passing through {}".format(dirname)) self.logger.exception(e) raise e