Commit b6c0f86
committed
Fix assertion error when workflow initialization fails
The serialization context changes introduced an incorrect 'assert workflow' statement that would fail when workflow initialization fails (e.g., when the workflow class isn't registered). This caused tests to hang with an unhandled AssertionError.
The workflow variable can legitimately be None when initialization fails, and we only need it when applying a payload codec. Changed to check for workflow existence as part of the condition for applying the codec.1 parent 8f90a61 commit b6c0f86
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | 357 | | |
359 | 358 | | |
360 | | - | |
| 359 | + | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
| |||
0 commit comments