[mastodon] Remove redundant error class
This commit is contained in:
parent
a61c48e99e
commit
b49c4767a0
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue