Skip to content

Commit

Permalink
Use "raise from" form in get_dataset_state.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbartel committed May 29, 2024
1 parent 7789a8f commit e5aa5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lib/client/dmod/client/request_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ async def get_dataset_state(self, dataset_name: str, **kwargs) -> DatasetManagem
try:
return await self._process_request(request=request)
except DmodRuntimeError as e:
raise DmodRuntimeError(f"DMOD error when getting dataset state: {str(e)}")
raise DmodRuntimeError(f"DMOD error when getting dataset state: {str(e)}") from e

async def list_datasets(self, category: Optional[DataCategory] = None, **kwargs) -> List[str]:
"""
Expand Down

0 comments on commit e5aa5d5

Please sign in to comment.