From 4582ae4d59817f2c25e5db687a0065bd3b338047 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 17 Jun 2024 07:27:24 -0700 Subject: [PATCH] Close log file --- examples/recover_photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/recover_photos.py b/examples/recover_photos.py index 542c56468..82e7c01f9 100644 --- a/examples/recover_photos.py +++ b/examples/recover_photos.py @@ -135,8 +135,8 @@ def main(library_path: str, verbose: bool, destination: str, dry_run: bool): f"[num]{edited_count}[/] edited photos, and [num]{aae_count}[/] AAE files. " f"Errors: [num]{error_count}[/]" ) - echo(f"Log written to [filepath]{log_file}[/]") _global_log_file.close() + echo(f"Log written to [filepath]{log_file}[/]") def read_originals(library_path: pathlib.Path) -> list[pathlib.Path]: