Skip to content

Commit

Permalink
fix: ignore files without extension as it raises an uncaught error in…
Browse files Browse the repository at this point in the history
… utitools.
  • Loading branch information
dominik-bernhardt-cytena committed Dec 15, 2024
1 parent 6f18c52 commit 442d5f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osxphotos/cli/import_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2630,7 +2630,8 @@ def collect_files_to_import(
total=len(files_to_import),
)
for f in files_to_import:
if is_image_file(f) or is_video_file(f) or f.suffix.lower() == ".aae":
# ignore files without ext (e.g. .DS_Store) as it raises an error in utitools
if len(f.suffix)>0 and (is_image_file(f) or is_video_file(f) or f.suffix.lower() == ".aae"):
filtered_file_list.append(f)
progress.advance(task)

Expand Down

0 comments on commit 442d5f2

Please sign in to comment.