name of exception for exit() - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: name of exception for exit() (/thread-18621.html) |
name of exception for exit() - Skaperen - May-24-2019 when exit() is called, it's really raising a special exception that does not dump anything. i'd like to capture this exception but i can't find its name. since there is no stack dump, i can't see what it raises by just doing one. anyone got the name for this (and, if needed, what module it's in)?
RE: name of exception for exit() - Yoriz - May-24-2019 https://docs.python.org/3/library/exceptions.html#SystemExit Wrote:exception SystemExit RE: name of exception for exit() - Skaperen - May-24-2019 the way exit() handles a string can eliminate a few lines of my code that was trying to do the same thing with return. |