Skip to content

Commit

Permalink
Raise exception, not poison
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain committed Dec 7, 2023
1 parent cd5e2de commit 517c856
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eqcorrscan/core/match_filter/tribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,8 @@ def _detect_concurrent(
# Check for exceptions
if killed:
internal_error = poison_queue.get()
if isinstance(internal_error, Poison):
internal_error = internal_error.value
Logger.error(f"Raising error {internal_error} in main process")
# Now we can raise the error
if internal_error:
Expand Down

0 comments on commit 517c856

Please sign in to comment.