Top "Traceback" questions

A traceback is a report of the actions leading up to a run-time error in the execution of a program.

How to catch and print the full exception traceback without halting/exiting the program?

I want to catch and log exceptions without exiting, e.g., try: do_stuff() except Exception, err: print(Exception, err) # …

python exception try-catch traceback
How to exit from Python without traceback?

I would like to know how to I exit from Python without having an traceback dump on the output. I …

python exit traceback
Determine function name from within that function (without using traceback)

In Python, without using the traceback module, is there a way to determine a function's name from within that function? …

python function introspection traceback
When I catch an exception, how do I get the type, file, and line number?

Catching an exception that would print like this: Traceback (most recent call last): File "c:/tmp.py", line 1, in <…

python exception stack-trace traceback
Showing the stack trace from a running Python application

I have this Python application that gets stuck from time to time and I can't find out where. Is there …

python debugging stack-trace traceback
Print an error message without printing a traceback and close the program when a condition is not met

I've seen similar questions to this one but none of them really address the trackback. If I have a class …

python exception error-handling customization traceback
Error - input expected at most 1 argument, got 3

I've set up the following for loop to accept 5 test scores. I want the loop to prompt the user to …

python arguments traceback
TypeError: coercing to Unicode, need string or buffer, NoneType found

Currently writing a function for a program and one component is to search whether a single variables are being used …

python function typeerror traceback nonetype
Exception traceback is hidden if not re-raised immediately

I've got a piece of code similar to this: import sys def func1(): func2() def func2(): raise Exception('test error') …

python exception exception-handling try-catch traceback
Python: Traceback codecs.charmap_decode(input,self.errors,decoding_table)[0]

Following is sample code, aim is just to merges text files from give folder and it's sub folder. i am …

python file-io python-3.x traceback python-unicode