File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,10 @@ def create_data_rows(self, items):
69
69
70
70
Raise:
71
71
InvalidQueryError: if the `items` parameter does not conform to
72
- the specification above.
73
- MalformedRequestError: if the server did not accept the DataRow
74
- creation request.
75
- ResourceNotFoundError: if unable to retrieve the Task based on the
76
- task_id of the import process. This could imply that the import
77
- failed.
72
+ the specification above or if the server did not accept the
73
+ DataRow creation request (unknown reason).
74
+ ResourceNotFoundError: if unable to retrieve the Task for the
75
+ import process. This could imply that the import failed.
78
76
InvalidAttributeError: if there are fields in `items` not valid for
79
77
a DataRow.
80
78
"""
@@ -128,8 +126,8 @@ def convert_item(item):
128
126
query_str , {dataset_param : self .uid , url_param : descriptor_url })
129
127
res = res ["appendRowsToDataset" ]
130
128
if not res ["accepted" ]:
131
- raise MalformedRequestError (
132
- "Server did not accept DataRow creation request" , data )
129
+ raise InvalidQueryError (
130
+ "Server did not accept DataRow creation request" )
133
131
134
132
# Fetch and return the task.
135
133
task_id = res ["taskId" ]
You can’t perform that action at this time.
0 commit comments