Skip to content

Video editing with Python

Exceptions do not have a .message attribute.

Julian O586632b41fa0
diff --git a/moviepy/config.py b/moviepy/config.py
index e102253f..64035f4f 100644
--- a/moviepy/config.py
+++ b/moviepy/config.py
@@ -45,10 +45,9 @@ elif FFMPEG_BINARY=='auto-detect':
else:
success, err = try_cmd([FFMPEG_BINARY])
if not success:
- raise IOError(err.message +
- "The path specified for the ffmpeg binary might be wrong")
-
-
+ raise IOError(
+ str(err) +
+ " - The path specified for the ffmpeg binary might be wrong")
if IMAGEMAGICK_BINARY=='auto-detect':
if os.name == 'nt':
@@ -65,8 +64,9 @@ if IMAGEMAGICK_BINARY=='auto-detect':
else:
success, err = try_cmd([IMAGEMAGICK_BINARY])
if not success:
- raise IOError(err.message +
- "The path specified for the ImageMagick binary might be wrong")
+ raise IOError(
+ str(err) +
+ " - The path specified for the ImageMagick binary might be wrong")