Skip to content

Commit e5c8c8f

Browse files
committed
modified import error notification in gif_recorder.py
1 parent d54f0ab commit e5c8c8f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

smarts/env/wrappers/gif_recorder.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
22-
import os
2322
import sys
24-
import typing
23+
import logging
2524
import gym
2625
import numpy as np
2726

2827
try:
2928
from moviepy.editor import ImageClip, ImageSequenceClip
3029
except (ImportError, ModuleNotFoundError):
31-
print(sys.exc_info())
32-
print(
33-
"You may not have installed the [gym] dependencies required to capture the video. Install them first using the command `pip install -e .[gym]` at the source directory."
30+
logging.warning(sys.exc_info())
31+
logging.warning(
32+
"You may not have installed the [gym] dependencies required to capture the video. Install them first with the `smarts[gym]` extras."
3433
)
34+
35+
raise
36+
3537
import shutil
3638
import time
3739
from pathlib import Path

0 commit comments

Comments
 (0)