[mastodon] Remove redundant error class

pull/2/head
missytake 2023-03-19 13:20:14 +01:00
parent a61c48e99e
commit b49c4767a0
1 changed files with 0 additions and 4 deletions

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)