Skip to content

Commit 4760eff

Browse files
committed
Use raise from
1 parent 7e74759 commit 4760eff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vws/vws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def decorated() -> None:
338338

339339
try:
340340
decorated()
341-
except FunctionTimedOut:
342-
raise TargetProcessingTimeout
341+
except FunctionTimedOut as exc:
342+
raise TargetProcessingTimeout from exc
343343

344344
def list_targets(self) -> List[str]:
345345
"""

0 commit comments

Comments
 (0)