From 9224775d795fd03de4e7bf39901ddc108392dd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Sun, 9 Oct 2016 11:22:36 +0200 Subject: [PATCH] Catch all exceptions when loading gl_info --- 16_reinforcement_learning.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/16_reinforcement_learning.ipynb b/16_reinforcement_learning.ipynb index 9f84245..c6b6da9 100644 --- a/16_reinforcement_learning.ipynb +++ b/16_reinforcement_learning.ipynb @@ -571,7 +571,7 @@ "try:\n", " from pyglet.gl import gl_info\n", " openai_cart_pole_rendering = True # no problem, let's use OpenAI gym's rendering function\n", - "except ImportError:\n", + "except Exception:\n", " openai_cart_pole_rendering = False # probably running on binder, let's use our own rendering function\n", "\n", "def render_cart_pole(env, obs):\n",