Catch all exceptions when loading gl_info

main
Aurélien Geron 2016-10-09 11:22:36 +02:00
parent 53398526d6
commit 9224775d79
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@
"try:\n", "try:\n",
" from pyglet.gl import gl_info\n", " from pyglet.gl import gl_info\n",
" openai_cart_pole_rendering = True # no problem, let's use OpenAI gym's rendering function\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", " openai_cart_pole_rendering = False # probably running on binder, let's use our own rendering function\n",
"\n", "\n",
"def render_cart_pole(env, obs):\n", "def render_cart_pole(env, obs):\n",