diff options
author | Munyoki Kilyungi | 2024-02-25 17:37:57 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-02-25 17:57:17 +0300 |
commit | 3e1261eab74bada1fd1c037df633a50e9a94eef9 (patch) | |
tree | b9fb55bc998d3b597e63be0ebe04df95ff02dbb0 /gn3/api/llm.py | |
parent | 1d811a1fa24ff105db458d56ea71a538737082d0 (diff) | |
download | genenetwork3-3e1261eab74bada1fd1c037df633a50e9a94eef9.tar.gz |
Correctly handle URLError.
Using the `internal_server_error` function to handle URLError raised
an exception because the `pnf` exception did not have some attributes.
* gn3/errors.py (url_server_error): New function.
(register_error_handlers): Register above function to handle URLError.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api/llm.py')
0 files changed, 0 insertions, 0 deletions