45fe2a151e37e7224790389a930695c9e2b0fe90,openml/_api_calls.py,,_parse_server_exception,#Any#Any#,138
Before Change
code = int(server_exception["oml:error"]["oml:code"])
message = server_exception["oml:error"]["oml:message"]
additional = None
if "oml:additional_information" in server_exception["oml:error"]:
additional = server_exception["oml:error"]["oml:additional_information"]
if code in [372, 512, 500, 482, 542, 674]:
// 512 for runs, 372 for datasets, 500 for flows
// 482 for tasks, 542 for evaluations, 674 for setups
return OpenMLServerNoResult(code, message, additional)
After Change
"Status code: {}\n{}".format(response.status_code, response.text))
server_error = server_exception["oml:error"]
code = int(server_error["oml:code"])
message = server_error["oml:message"]
additional_information = server_error.get("oml:additional_information")
if code in [372, 512, 500, 482, 542, 674]:
// 512 for runs, 372 for datasets, 500 for flows
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: openml/openml-python
Commit Name: 45fe2a151e37e7224790389a930695c9e2b0fe90
Time: 2019-02-23
Author: p.gijsbers@tue.nl
File Name: openml/_api_calls.py
Class Name:
Method Name: _parse_server_exception
Project Name: cmu-db/ottertune
Commit Name: e5113f73f524b8358bd09b087796a806a0b3a313
Time: 2020-04-09
Author: dongshen@andrew.cmu.edu
File Name: server/website/website/db/oracle/target_objective.py
Class Name: NormalizedDBTime
Method Name: compute
Project Name: scipy/scipy
Commit Name: 4ab211d6dd50c043cacd24db93a6bc64cfdb9ed5
Time: 2017-07-21
Author: pav@iki.fi
File Name: tools/validate_runtests_log.py
Class Name:
Method Name:
Project Name: theislab/scanpy
Commit Name: ab9247bdf8b7a3decc34a15b26fec813ea8fba0d
Time: 2020-07-31
Author: ivirshup@gmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download
Project Name: tensorflow/transform
Commit Name: 687e31d276db17b4ac7bea08b01c1e5401168ca9
Time: 2019-01-23
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/tf_metadata/metadata_io.py
Class Name:
Method Name: _column_schema_from_json