If distance != -1 and distance <= 50: TypeError: unorderable types: NoneType() <= int()
If distance != -1 and distance <= 50:
TypeError: unorderable types: NoneType() <= int()