Commit c0a6a41
Benjamin Moody
get_annotators: use _get_url in place of requests.get.
Note that this will handle errors (e.g. a file that we are not
authorized to access) and raise an exception, rather than trying to
parse the error document. Previously, 404 errors were handled, but
other types of errors were not.1 parent 3cec71f commit c0a6a41
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| 352 | + | |
351 | 353 | | |
352 | | - | |
| 354 | + | |
353 | 355 | | |
354 | 356 | | |
355 | 357 | | |
| |||
0 commit comments