Skip to content

Commit

Permalink
fix: #136.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltbringer committed Mar 29, 2022
1 parent 8943fb2 commit d7bdfd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dialogy/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,12 @@ def run(self, input_: Input) -> Tuple[Dict[str, Any], Dict[str, Any]]:
"""
with self.lock:
self.input = input_
return self.execute().flush()
try:
return self.execute().flush()
except Exception as e:
raise e
finally:
self.__reset()

def flush(self) -> Tuple[Dict[str, Any], Dict[str, Any]]:
"""
Expand Down

0 comments on commit d7bdfd9

Please sign in to comment.