ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
35 stars 2 forks source link

Python Exception and Stack Trace No Longer Logged In Job Output #3586

Closed Bondosan closed 4 weeks ago

Bondosan commented 1 month ago

Version

4.3.2

Severity

Medium

Environment

msi

Steps to Reproduce

When Python script jobs fail, exception information is no longer logged to the job's output.

For instance, a job running the code below displays the print statement in its output, but does not display the exception information in its output :

print("This should fail.")
raise Exception("We won't see this.")

Expected behavior

[information] This should fail.
[error] Traceback (most recent call last):
[error]   File "C:\ProgramData\UniversalAutomation\Repository\Test\test.py", line 2, in <module>
[error]     raise Exception("We won't see this.")
[error] Exception: We won't see this.

Actual behavior

[information] This should fail.

Additional Environment data

No response

Screenshots/Animations

No response