You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If an exception is raised in line-by-line mode, the standard output descriptor is not restored, so the JSON error is not printed, and it makes mkdocstrings hang since there's no output to read.
Expected behavior
stdout should be properly restored when an exception is caught in line-by-line mode.
Additional context
We should move the code responsible for discarding/restoring stdout into the main function of the cli module, so we can restore it in the except handler, and in the finally clause.
The text was updated successfully, but these errors were encountered:
Describe the bug
If an exception is raised in line-by-line mode, the standard output descriptor is not restored, so the JSON error is not printed, and it makes mkdocstrings hang since there's no output to read.
Expected behavior
stdout should be properly restored when an exception is caught in line-by-line mode.
Additional context
We should move the code responsible for discarding/restoring stdout into the main function of the cli module, so we can restore it in the except handler, and in the finally clause.
The text was updated successfully, but these errors were encountered: