K
K
kuzdman2018-02-08 09:52:17
Python
kuzdman, 2018-02-08 09:52:17

How to catch an error if it's already committed by python?

If the console has already given me an error, then I can somehow remember it in the code. MB to a variable. Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-08
@kuzdman

You need to learn what Stack Trace is and how to find a place in your code using it. https://docs.python.org/2/library/traceback.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question