From 921a3b13dde81d756ae4e2e16f2b2a2d6eaffdc1 Mon Sep 17 00:00:00 2001 From: Aurelien Geron 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 8f367c2c6..f2f9770e4 100644 --- a/16_reinforcement_learning.ipynb +++ b/16_reinforcement_learning.ipynb @@ -3017,7 +3017,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",