diff --git a/import.py b/import.py index 0e49928..ae3b690 100644 --- a/import.py +++ b/import.py @@ -45,6 +45,8 @@ logger.info("Importing messages..") for channel in channels: files = glob.glob(os.path.join(directory, channel['name'], '*.json')) + if len(files) == 0: + logger.warning("No messages found for #%s" % channel['name']) for file_name in files: with open(file_name, encoding='utf8') as f: messages = json.load(f)