Jan-17-2018, 03:47 AM
i would like to try a given block of statements, and if there is any exception, just keep on running like:
try: whatever goes here ... except: passbut ... i'd also like to get the same full traceback and exception message output like i would get if i did not use the try/except and continue running. in another case i'd like to have only the exception message output without the traceback. in a 3rd case i'd like to capture the traceback and exception message into some data object. in a 4th case same as the 3rd but only capture the message. the 4th case will not be needed if the is some way to extract the message from the whole capture.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.