File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,9 @@ def create_slice(
221
221
222
222
:return: new Slice object
223
223
"""
224
- if dataset_item_ids and reference_ids :
224
+ if bool ( dataset_item_ids ) == bool ( reference_ids ) :
225
225
raise Exception (
226
- "You cannot specify both dataset_item_ids and reference_ids"
226
+ "You must specify exactly one of dataset_item_ids or reference_ids. "
227
227
)
228
228
payload : Dict [str , Any ] = {NAME_KEY : name }
229
229
if dataset_item_ids :
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def serialize_and_write(
77
77
):
78
78
for unit in upload_unit :
79
79
try :
80
- file_pointer .write (unit .to_json ())
80
+ file_pointer .write (unit .to_json () + " \n " )
81
81
except TypeError as e :
82
82
type_name = type (unit ).__name__
83
83
message = (
You can’t perform that action at this time.
0 commit comments