Annoying message when interrupting python scripts

geoffbache geoff.bache at jeppesen.com
Tue Jun 17 11:03:45 EDT 2008


To clarify: this is more serious than an incorrect error message, as
the intended interrupt gets swallowed and
script execution proceeds. Sometimes I seem to get half-imported
modules as well,
the script failing later with something like

AttributeError: 'module' object has no attribute 'getenv'

when trying to call os.getenv

Regards,
Geoff Bache



More information about the Python-list mailing list