MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __str__

Method __str__

tortoise/exceptions.py:93–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 self.pk_val: Any = pk_val
92
93 def __str__(self) -> str:
94 return f"{self.model.__name__} has no object with {self.pk_name}={self.pk_val}"
95
96
97class DoesNotExist(NotExistOrMultiple):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected