We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e9ab1 commit ac3b903Copy full SHA for ac3b903
1 file changed
openml/_api/clients/http.py
@@ -99,10 +99,13 @@ def _get_body_filename_from_response(self, response: Response) -> str:
99
if "text/xml" in content_type:
100
return "body.xml"
101
102
+ if response.content.startswith(b"PK\x03\x04"):
103
+ return "body.zip"
104
+
105
try:
106
arff.loads(response.text)
107
return "body.arff"
- except arff.BadDataFormat:
108
+ except arff.ArffException:
109
pass
110
111
return "body.txt"
@@ -117,6 +120,9 @@ def _get_body_filename_from_path(self, path: Path) -> str:
117
120
if (path / "body.arff").exists():
118
121
119
122
123
+ if (path / "body.zip").exists():
124
125
126
127
128
def load(self, key: str) -> Response:
0 commit comments