Skip to content

Commit 42d0c54

Browse files
committed
valueError(msg) from e
1 parent e5189d6 commit 42d0c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapseclient/models/submission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ async def _fetch_latest_entity(
496496
except Exception as e:
497497
raise ValueError(
498498
f"Unable to fetch entity information for {self.entity_id}: {e}"
499-
)
499+
) from e
500500

501501
def to_synapse_request(self) -> dict:
502502
"""Creates a request body expected of the Synapse REST API for the Submission model.

0 commit comments

Comments
 (0)