Skip to content

Commit b0e944d

Browse files
authored
Remove E500 from list of exception to raise (#1071)
OpenML code 500 indicates no results for a flow query, and was likely confused with the HTTP code 500 for internal server error.
1 parent 968e251 commit b0e944d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

openml/_api_calls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ def _send_request(request_method, url, data, files=None, md5_checksum=None):
247247
OpenMLHashException,
248248
) as e:
249249
if isinstance(e, OpenMLServerException):
250-
if e.code not in [107, 500]:
250+
if e.code not in [107]:
251251
# 107: database connection error
252-
# 500: internal server error
253252
raise
254253
elif isinstance(e, xml.parsers.expat.ExpatError):
255254
if request_method != "get" or retry_counter >= n_retries:

0 commit comments

Comments
 (0)