Skip to content

Commit 98defa8

Browse files
authored
Fix logic bug
1 parent 87d22a4 commit 98defa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nucleus/annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class Annotation:
2828
def _check_ids(self):
29-
if not bool(self.reference_id) and not bool(self.item_id):
29+
if bool(self.reference_id) == bool(self.item_id):
3030
raise Exception(
3131
"You must specify either a reference_id or an item_id for an annotation."
3232
)

0 commit comments

Comments
 (0)