Skip to content
Snippets Groups Projects
Commit d14dd7a9 authored by Eva Bardou's avatar Eva Bardou
Browse files

Fix create_transcription_entity assertions

parent c1a05b45
No related branches found
Tags 0.2.4-rc3
1 merge request!99Fix create_transcription_entity assertions
Pipeline #78496 passed
......@@ -93,10 +93,10 @@ class EntityMixin(object):
entity, str
), "entity shouldn't be null and should be of type str"
assert (
offset and isinstance(offset, int) and offset >= 0
offset is not None and isinstance(offset, int) and offset >= 0
), "offset shouldn't be null and should be a positive integer"
assert (
length and isinstance(length, int) and length > 0
length is not None and isinstance(length, int) and length > 0
), "length shouldn't be null and should be a strictly positive integer"
if self.is_read_only:
logger.warning(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment