stefanv/ipython — comment on commit 2e8339fd5d4f094919ec65d1489d7975e25c0fd0
File: IPython/lib/security.py line 40
By fperez:

Since this is inherently interactive code, instead of a simple check with a ValueError at the end, it should instead do a 3-loop attempt at getting it right, and if on the third time it still doesn't work, then simply print to stderr a short error message and return.