From bd0a5260d63ac5f0ad3741ea84d6057fd03ad0ee Mon Sep 17 00:00:00 2001 From: datawhores Date: Tue, 27 Aug 2024 13:58:28 -0500 Subject: [PATCH] add log for no content --- ofscraper/commands/managers/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ofscraper/commands/managers/db.py b/ofscraper/commands/managers/db.py index cf4a305e..b03cf981 100644 --- a/ofscraper/commands/managers/db.py +++ b/ofscraper/commands/managers/db.py @@ -94,6 +94,9 @@ def print_dictionary_table(self): log = logging.getLogger("db") add_other_handler(log) dictionaries=self.media + if len(self.media)==0: + self.log.error("All media filter out") + return # Remove specified keys from dictionaries (if provided) if self.remove_keys: