Skip to content

Commit

Permalink
Catch all exceptions when loading gl_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Oct 9, 2016
1 parent ecd710b commit 921a3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 16_reinforcement_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 921a3b1

Please sign in to comment.