Skip to content

Commit

Permalink
fix: adding missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina committed Dec 9, 2024
1 parent 79c11b8 commit 0a1afc2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api/v2/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from ninja_extra import status
from ninja_extra.exceptions import APIException


class ScoreDoesNotExist(APIException):
status_code = status.HTTP_404_NOT_FOUND
default_detail = "No score exists."

def __init__(self, address: str, *args, **kwargs):
self.address = address
super().__init__(*args, **kwargs)

0 comments on commit 0a1afc2

Please sign in to comment.