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
Don't crash when stdin has no interactive input for permission prompts
Previously, running the Docker image without -it would make sys.stdin.isatty()
return False and raise RuntimeError, aborting the whole postprocessing run.
Replace the isatty() check with catching EOFError on input(), which is the
actual signal that stdin has no data to offer. This means prompts still work
with just `docker run -i` (no pty needed), and with no flags at all the run
degrades gracefully by denying the risky permission and logging a warning
instead of crashing.
0 commit comments