feat: add models part 4
This commit is contained in:
@@ -71,5 +71,13 @@ class CantFollowYourself(Exception):
|
||||
return 'Cannot follow yourself'
|
||||
|
||||
class Unauthorized(Exception):
|
||||
def __str__(self) -> str:
|
||||
return 'Auth required - refresh token'
|
||||
def __str__(self):
|
||||
return 'Auth required - refresh token'
|
||||
|
||||
class CantRepostYourPost(Exception):
|
||||
def __str__(self):
|
||||
return 'Cannot repost your own post'
|
||||
|
||||
class AlreadyReposted(Exception):
|
||||
def __str__(self):
|
||||
return 'Post already reposted'
|
||||
|
||||
Reference in New Issue
Block a user