Skip to content

Commit

Permalink
Update python/lib/externalrequests/dmod/externalrequests/maas_request…
Browse files Browse the repository at this point in the history
…_handlers.py

Co-authored-by: Austin Raney <[email protected]>
  • Loading branch information
robertbartel and aaraney authored Feb 23, 2024
1 parent 9ac0e6b commit 19dadb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ async def determine_required_access_types(self, request: ExternalRequest, user)
# FIXME: for now, just use the default type (which happens to be "everything")
return self._default_required_access_type,

async def handle_request(self, request: Union[JobControlRequest, JobInfoRequest, JobListRequest],
if not isinstance(request, (JobControlRequest, JobInfoRequest, JobListRequest)):
**kwargs) -> Union[JobControlResponse, JobInfoResponse, JobListResponse]:
if not any(isinstance(request, rt) for rt in {JobControlRequest, JobInfoRequest, JobListRequest}):
raise TypeError(f"Invalid message type {request.__class__.__name__} sent to {self.__class__.__name__}")
Expand Down

0 comments on commit 19dadb5

Please sign in to comment.