Open HarryTSaban opened 1 month ago
https://github.com/aws-samples/amazon-textract-textractor/blob/9df5d268dead3f42104cde2f766cb16be3f93d95/textractor/entities/expense_field.py#L184-L189
The above code throws an AttributeError when the bbox on self.expenses[0] is None. Since spatial_object can be None, would it make sense to add some protection here?
AttributeError
bbox
self.expenses[0]
spatial_object
https://github.com/aws-samples/amazon-textract-textractor/blob/9df5d268dead3f42104cde2f766cb16be3f93d95/textractor/entities/expense_field.py#L184-L189
The above code throws an
AttributeError
when thebbox
onself.expenses[0]
is None. Sincespatial_object
can be None, would it make sense to add some protection here?