def get_map(self, uid=None):
"""
Get map instance by uid.
:param uid: By uid (pk).
:return: Player or exception if not found
"""
try:
return await Map.get_by_uid(uid)
except DoesNotExist:
raise MapNotFound('Map not found.')
评论列表
文章目录