Print error when downloading image

This commit is contained in:
2024-03-01 12:49:31 +01:00
parent f1db6b27ce
commit b1e37a9692

View File

@@ -59,6 +59,8 @@ class GoogleAssetsEngine(BaseAssetsEngine):
filename = [f for f in os.listdir("./temp/") if f.startswith("temp.")][0] filename = [f for f in os.listdir("./temp/") if f.startswith("temp.")][0]
img = mp.ImageClip(f"./temp/{filename}") img = mp.ImageClip(f"./temp/{filename}")
# delete the temp folder # delete the temp folder
except Exception as e:
print(e)
finally: finally:
shutil.rmtree("temp") shutil.rmtree("temp")