Skip to content

Commit

Permalink
add log for no content
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Aug 27, 2024
1 parent 09916cc commit bd0a526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ofscraper/commands/managers/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd0a526

Please sign in to comment.