[mastodon] Remove redundant error class
This commit is contained in:
parent
40b62d9243
commit
1a639548f0
|
@ -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