[mastodon] Remove redundant error class

This commit is contained in:
missytake 2023-03-19 13:20:14 +01:00
parent 40b62d9243
commit 1a639548f0

View file

@ -37,10 +37,6 @@ class BodyMastodonAccount(BaseModel):
return validate_email(value)
class HTTPError(BaseModel):
status_code: int
async def get_mastodon(mastodon_id, hood=Depends(get_hood)):
try:
return await MastodonAccount.objects.get(id=mastodon_id, hood=hood)