mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 09:16:19 +00:00
Print error when downloading image
This commit is contained in:
@@ -59,6 +59,8 @@ class GoogleAssetsEngine(BaseAssetsEngine):
|
||||
filename = [f for f in os.listdir("./temp/") if f.startswith("temp.")][0]
|
||||
img = mp.ImageClip(f"./temp/{filename}")
|
||||
# delete the temp folder
|
||||
except Exception as e:
|
||||
print(e)
|
||||
finally:
|
||||
shutil.rmtree("temp")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user