hatobi / bereal-gdpr-photo-toolkit

Process BeReal photos received from a GDPR-request
The Unlicense
61 stars 6 forks source link

Exception when run with combined photos turned off #16

Closed jzplusplus closed 2 weeks ago

jzplusplus commented 2 weeks ago

Traceback (most recent call last): File "C:\Users\jzplusplus\Documents\bereal-gdpr-photo-toolkit\process-photos.py", line 451, in remove_backup_files(output_folder_combined) File "C:\Users\jzplusplus\Documents\bereal-gdpr-photo-toolkit\process-photos.py", line 308, in remove_backup_files for filename in os.listdir(directory): FileNotFoundError: [WinError 3] The system cannot find the path specified: 'Photos\post\__combined'

Can be fixed with something like this:

if create_combined_images == 'yes': remove_backup_files(output_folder_combined)

hatobi commented 2 weeks ago

Thanks for catching the exception and providing a solution — I completely missed it! I’ve implemented the fix in the latest commit and credited you as a co-author.