print active readers when no content is found

This commit is contained in:
adrin jalali 2018-03-23 14:59:26 +01:00
commit be4e04f774

View file

@ -467,7 +467,11 @@ def main():
', '.join(k for k, v in modified.items() if v)))
if modified['content'] is None:
logger.warning('No valid files found in content.')
logger.warning('No valid files found in content for the active readers:')
for k, v in readers.readers.items():
if v.enabled:
logger.warning(' | %s (%s)' % (type(v).__name__,
', '.join(v.file_extensions)))
if modified['theme'] is None:
logger.warning('Empty theme folder. Using `basic` '
@ -490,7 +494,11 @@ def main():
else:
if next(watchers['content']) is None:
logger.warning('No valid files found in content.')
logger.warning('No valid files found in content for the active readers:')
for k, v in readers.readers.items():
if v.enabled:
logger.warning(' | %s (%s)' % (type(v).__name__,
', '.join(v.file_extensions)))
if next(watchers['theme']) is None:
logger.warning('Empty theme folder. Using `basic` theme.')