Skip to content

Commit

Permalink
Fixed error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Dec 5, 2023
1 parent ed484f4 commit 389e97e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/metadata_change_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ def main(export_path, export_db_path):

export_path = pathlib.Path(export_path)
# assume it's the export folder
export_db_path = pathlib.Path(export_db_path) or export_path / OSXPHOTOS_EXPORT_DB
export_db_path = (
pathlib.Path(export_db_path)
if export_db_path
else export_path / OSXPHOTOS_EXPORT_DB
)
if not export_db_path.is_file():
echo_error(
f"[error]Error: could not find export database at {export_db_path}[/]"
Expand Down

0 comments on commit 389e97e

Please sign in to comment.