Skip to content

Commit 37f4980

Browse files
committed
fixed return on catched error in hook
1 parent 2377e39 commit 37f4980

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/edgygraph/graphs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async def __call__(self, state: T, shared: S) -> Tuple[T, S]:
165165

166166
return state, shared
167167

168-
168+
169169
except Exception as e:
170170

171171
# Hook
@@ -176,6 +176,8 @@ async def __call__(self, state: T, shared: S) -> Tuple[T, S]:
176176

177177
if e:
178178
raise e
179+
180+
return state, shared
179181

180182

181183

0 commit comments

Comments
 (0)