[mastodon] Remove redundant error class

This commit is contained in:
missytake 2023-03-19 13:20:14 +01:00
parent a61c48e99e
commit b49c4767a0

View file

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