Skip to content

Commit 28850fe

Browse files
committed
Handle exceptions when no message is present
- Pass string form of the exception type to WebJobs extension instead
1 parent 74d9181 commit 28850fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/durable_functions/models/TaskOrchestrationExecutor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def get_orchestrator_state_str(self) -> str:
291291
actions=self.context._actions,
292292
output=self.output,
293293
replay_schema=self.context._replay_schema,
294-
error=None if self.exception is None else str(self.exception),
294+
error=None if self.exception is None else (str(type(self.exception)) if not str(self.exception) else str(self.exception)),
295295
custom_status=self.context.custom_status
296296
)
297297

0 commit comments

Comments
 (0)