From e5aa5d50837bc751ede138ea213582a3ae173308 Mon Sep 17 00:00:00 2001 From: Robert Bartel Date: Wed, 29 May 2024 09:15:14 -0400 Subject: [PATCH] Use "raise from" form in get_dataset_state. --- python/lib/client/dmod/client/request_clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lib/client/dmod/client/request_clients.py b/python/lib/client/dmod/client/request_clients.py index ffc051fab..213f86a93 100644 --- a/python/lib/client/dmod/client/request_clients.py +++ b/python/lib/client/dmod/client/request_clients.py @@ -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]: """