Skip to content

Commit

Permalink
docs: Update licences and instances of DB Netz AG to DB InfraGO AG
Browse files Browse the repository at this point in the history
  • Loading branch information
romeonicholas committed Jan 2, 2024
1 parent 4f44ef6 commit 0c59838
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion backend/capellacollab/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ async def resource_already_exists_exception_handler(

def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
ExistingDependenciesError, existing_dependencies_exception_handler
ExistingDependenciesError, existing_dependencies_exception_handler # type: ignore[arg-type]
)
2 changes: 1 addition & 1 deletion backend/capellacollab/core/logging/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ async def too_many_outstanding_requests_handler(

def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
TooManyOutStandingRequests, too_many_outstanding_requests_handler
TooManyOutStandingRequests, too_many_outstanding_requests_handler # type: ignore[arg-type]
)
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ async def pipeline_creation_failed_t4c_server_unreachable_handler(
def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
PipelineOperationFailedT4CServerUnreachable,
pipeline_creation_failed_t4c_server_unreachable_handler,
pipeline_creation_failed_t4c_server_unreachable_handler, # type: ignore[arg-type]
)
2 changes: 1 addition & 1 deletion backend/capellacollab/projects/toolmodels/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ async def version_id_not_set_exception_handler(

def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
VersionIdNotSetError, version_id_not_set_exception_handler
VersionIdNotSetError, version_id_not_set_exception_handler # type: ignore[arg-type]
)
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,20 @@ async def github_artifact_expired_handler(
def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
GitRepositoryFileNotFoundError,
git_repository_file_not_found_handler,
git_repository_file_not_found_handler, # type: ignore[arg-type]
)
app.add_exception_handler(
GitInstanceAPIEndpointNotFoundError,
git_instance_api_endpoint_not_found_handler,
git_instance_api_endpoint_not_found_handler, # type: ignore[arg-type]
)
app.add_exception_handler(
GitPipelineJobNotFoundError,
git_pipeline_job_not_found_handler,
git_pipeline_job_not_found_handler, # type: ignore[arg-type]
)
app.add_exception_handler(
GitPipelineJobUnknownStateError, unknown_state_handler
GitPipelineJobUnknownStateError, unknown_state_handler # type: ignore[arg-type]
)
app.add_exception_handler(
GitPipelineJobFailedError,
git_pipeline_job_failed_handler,
git_pipeline_job_failed_handler, # type: ignore[arg-type]
)
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ async def gitlab_project_not_found_handler(
def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
GitlabAccessDeniedError,
gitlab_access_denied_handler,
gitlab_access_denied_handler, # type: ignore[arg-type]
)

app.add_exception_handler(
GitlabProjectNotFoundError,
gitlab_project_not_found_handler,
gitlab_project_not_found_handler, # type: ignore[arg-type]
)
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ async def no_matching_git_instance_handler(
def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
GitInstanceUnsupportedError,
git_instance_unsupported_handler,
git_instance_unsupported_handler, # type: ignore[arg-type]
)

app.add_exception_handler(
NoMatchingGitInstanceError,
no_matching_git_instance_handler,
no_matching_git_instance_handler, # type: ignore[arg-type]
)
2 changes: 1 addition & 1 deletion backend/capellacollab/sessions/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ async def unsupported_session_type_handler(
def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
UnsupportedSessionTypeError,
unsupported_session_type_handler,
unsupported_session_type_handler, # type: ignore[arg-type]
)
4 changes: 2 additions & 2 deletions backend/capellacollab/settings/modelsources/t4c/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def __init__(self):

def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
T4CInstanceIsArchivedError, t4c_instance_is_archived_exception_handler
T4CInstanceIsArchivedError, t4c_instance_is_archived_exception_handler # type: ignore[arg-type]
)
app.add_exception_handler(
T4CInstanceWithNameAlreadyExistsError,
core_exceptions.resource_already_exists_exception_handler,
core_exceptions.resource_already_exists_exception_handler, # type: ignore[arg-type]
)
4 changes: 2 additions & 2 deletions backend/capellacollab/tools/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ async def tool_image_not_found_exception_handler(

def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
ToolVersionNotFoundError, tool_version_not_found_exception_handler
ToolVersionNotFoundError, tool_version_not_found_exception_handler # type: ignore[arg-type]
)
app.add_exception_handler(
ToolImageNotFoundError, tool_image_not_found_exception_handler
ToolImageNotFoundError, tool_image_not_found_exception_handler # type: ignore[arg-type]
)
4 changes: 2 additions & 2 deletions backend/capellacollab/users/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UserNotFoundError(Exception):


async def user_not_found_exception_handler(
request: fastapi.Request, exc: UserNotFoundError # type: ignore[arg-type]
request: fastapi.Request, exc: UserNotFoundError
) -> fastapi.Response:
return await exception_handlers.http_exception_handler(
request,
Expand All @@ -30,5 +30,5 @@ async def user_not_found_exception_handler(

def register_exceptions(app: fastapi.FastAPI):
app.add_exception_handler(
UserNotFoundError, user_not_found_exception_handler
UserNotFoundError, user_not_found_exception_handler # type: ignore[arg-type]
)

0 comments on commit 0c59838

Please sign in to comment.