Skip to content

Commit

Permalink
Suppress logging of processing time if nothing was processed
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Sep 17, 2022
1 parent dae67b1 commit 85c5cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user_scripts/parse_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ def main():

if page_parser.decoder:
logger.info(page_parser.decoder.decoding_summary())
logger.info(f'AVERAGE PROCESSING TIME {(time.time() - t_start) / len(ids_to_process)}')
if len(ids_to_process) > 0:
logger.info(f'AVERAGE PROCESSING TIME {(time.time() - t_start) / len(ids_to_process)}')


if __name__ == "__main__":
Expand Down

0 comments on commit 85c5cb0

Please sign in to comment.