fix: fix error 'str' object has not attribute 'get' (rate limit); add AlreadyFollowing exception on follow

This commit is contained in:
firedotguy
2026-02-08 22:49:06 +03:00
parent 5ebcdb1ad5
commit c2413277d6
3 changed files with 15 additions and 33 deletions

View File

@@ -102,4 +102,8 @@ class PinNotOwned(Exception):
class NoContent(Exception):
def __str__(self) -> str:
return 'Content or attachments required'
return 'Content or attachments required'
class AlreadyFollowing(Exception):
def __str__(self) -> str:
return 'Already following user'