add a condition for if the id is empty string nor none, because id is expecting a uuid, if not shipId: log.error("empty shipId") return False
if not shipId:
log.error("empty shipId")
return False