You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So right now, the script just prints every file while fixing it's metadata, and when something bad happens, the last printed path is the photo that caused problem
My idea: wrap fix_metadata in a try-catch all, then inside catch print the photo path and then re-throw previously caught exception (because dummly catching and ignoring all exceptions would be bad)
Also adding progress bars to removing duplicates and coping would be nice
The text was updated successfully, but these errors were encountered:
If you want to add a progress bar you may want to take a look at https://github.com/tqdm/tqdm. Basically, you can wrap for loops with tqdm() and it shows a progress bar.
So right now, the script just prints every file while fixing it's metadata, and when something bad happens, the last printed path is the photo that caused problem
My idea: wrap
fix_metadata
in atry-catch all
, then insidecatch
print the photo path and then re-throw previously caught exception (because dummly catching and ignoring all exceptions would be bad)Also adding progress bars to removing duplicates and coping would be nice
The text was updated successfully, but these errors were encountered: