adds target-exchange and initial migrations

This commit is contained in:
Gardient
2021-09-19 23:55:36 +03:00
parent cc44c4056e
commit 472f682c58
11 changed files with 273 additions and 3 deletions

View File

@@ -14,8 +14,8 @@ class ApiException(Exception):
return rv
class NotFoundException(ApiException):
def __init__(self, message) -> None:
super().__init__(404, message)
def __init__(self, entity_name) -> None:
super().__init__(404, f'{entity_name} could not be found')
class BadRequestException(ApiException):
def __init__(self, message) -> None: