Skip to content

Commit

Permalink
FIX: catch URLError in 2d_hmc
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer authored Sep 12, 2023
1 parent 71c45e6 commit fd023bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/classify/2d_hmc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"\n",
"try:\n",
" rs_data, rs_meta = wrl.io.get_radiosonde(10410, rs_time)\n",
"except urllib.error.HTTPError:\n",
"except (urllib.error.HTTPError, urllib.error.URLError):\n",
" dataf = wrl.util.get_wradlib_data_file(\"misc/radiosonde_10410_20140610_1200.h5\")\n",
" rs_data, _ = wrl.io.from_hdf5(dataf)\n",
" metaf = wrl.util.get_wradlib_data_file(\"misc/radiosonde_10410_20140610_1200.json\")\n",
Expand Down

0 comments on commit fd023bb

Please sign in to comment.