File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ class AnnounceValue(TypedDict):
8888
8989
9090class ErrorValue (TypedDict ):
91- err : Exception
91+ err_type : type [Exception ]
92+ err_args : tuple
9293 traceback : TracebackException
9394
9495
Original file line number Diff line number Diff line change @@ -574,7 +574,8 @@ def error(self, err: Exception) -> None:
574574 msg = ErrorMsg (
575575 node_id = self .spec .id ,
576576 value = ErrorValue (
577- err = err ,
577+ err_type = type (err ),
578+ err_args = err .args ,
578579 traceback = tbexception ,
579580 ),
580581 )
@@ -733,7 +734,7 @@ def _throw_error(self) -> None:
733734
734735 # add the traceback as a note,
735736 # sort of the best we can do without using tblib
736- err = errval ["err" ]
737+ err = errval ["err_type" ]( * errval [ "err_args" ])
737738 tb_message = "\n Error re-raised from node runner process\n \n "
738739 tb_message += "Original traceback:\n "
739740 tb_message += "-" * 20 + "\n "
You can’t perform that action at this time.
0 commit comments