Skip to content

Conversation

@ardila
Copy link
Contributor

@ardila ardila commented Apr 26, 2021

  • some minor, but urgent bugfixes for a customer

for unit in upload_unit:
try:
file_pointer.write(unit.to_json())
file_pointer.write(unit.to_json() + "\n")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was trying to make this ndjson format, but forgot to add the newlines.

if bool(dataset_item_ids) == bool(reference_ids):
raise Exception(
"You cannot specify both dataset_item_ids and reference_ids"
"You must specify exactly one of dataset_item_ids or reference_ids."
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the bug that made the error much harder to find.

@ardila ardila merged commit ec69608 into master Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants