Skip to content

Commit c66dc2d

Browse files
committed
Update InstagramAPI.py
1 parent b7c8d9c commit c66dc2d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

InstagramAPI/InstagramAPI.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
2323

2424
try:
2525
from moviepy.editor import VideoFileClip
26-
except:
27-
print("Fail to import moviepy. Need only for Video upload.")
26+
except ImportError:
27+
import imageio
28+
imageio.plugins.ffmpeg.download()
29+
from moviepy.editor import VideoFileClip
30+
#print("Fail to import moviepy. Need only for Video upload.")
31+
2832

2933
# The urllib library was split into other modules from Python 2 to Python 3
3034
if sys.version_info.major == 3:

0 commit comments

Comments
 (0)