Skip to content

Commit

Permalink
Fix timeout in docstrings build
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 15, 2024
1 parent 67b16ef commit 1946fd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/jaxsim_for_robot_controllers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
"source": [
"# @title Download the URDF model\n",
"\n",
"import requests\n",
"import urllib\n",
"\n",
"url = \"https://raw.githubusercontent.com/ami-iit/jaxsim/main/examples/assets/cartpole.urdf\"\n",
"\n",
"response = requests.get(url)\n",
"response = urllib.request.urlopen(url, timeout=30)\n",
"\n",
"if response.status_code == 200:\n",
" model_urdf_string = response.text\n",
"if response.getcode() == 200:\n",
" model_urdf_string = response.read()\n",
"else:\n",
" raise RuntimeError(\"Failed to fetch data.\")"
]
Expand Down

0 comments on commit 1946fd8

Please sign in to comment.