Skip to content

Commit

Permalink
fix: Move get_ffmpeg_exe call within imageio_ffmpeg import block
Browse files Browse the repository at this point in the history
  • Loading branch information
jthetzel committed Nov 28, 2020
1 parent 65b20f4 commit 37bf918
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pims/imageio_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
imageio = None
try:
import imageio_ffmpeg
try:
imageio_ffmpeg.get_ffmpeg_exe()
except RuntimeError:
imageio_ffmpeg = None
except ImportError:
imageio_ffmpeg = None
try:
imageio_ffmpeg.get_ffmpeg_exe()
except RuntimeError:
imageio_ffmpeg = None


def available():
Expand Down

0 comments on commit 37bf918

Please sign in to comment.