diff --git a/handle_imported_video.py b/handle_imported_video.py index ac2242d..8147c41 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -96,6 +96,17 @@ if os.path.exists(_FULL_PATH): print(output) print("Moving...") for p in parts: - shutil.move(p, _PROCESSED) - shutil.move(p.replace("MP4", "THM"), _PROCESSED) - shutil.move(p.replace("MP4", "LRV").replace("GH","GL"), _PROCESSED) \ No newline at end of file + try: + shutil.move(p, _PROCESSED) + except: + print(f"Failed to move {p}") + try: + shutil.move(p.replace("MP4", "THM"), _PROCESSED) + except: + print(f"Failed to move {p.replace("MP4", "THM")}") + + try: + shutil.move(p.replace("MP4", "LRV").replace("GH","GL"), _PROCESSED) + except: + print(f"Failed to move {p.replace("MP4", "LRV")}") + \ No newline at end of file