D
D
d3coy_002020-07-15 02:32:17
Python
d3coy_00, 2020-07-15 02:32:17

Catching an error in Python?

Hello, how can I catch an error in the program code that is displayed in the console, given that the error is thrown inside another library and cannot be changed? Interested in specific code examples, how can I guess that the interception can be done by connecting to the main thread - the program process or mb through signals?

Please answer in the format of code examples so that you know which way to dig!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
meaqese, 2020-07-15
@meaqese

Why can't you change? It is possible if there are no special requirements
Documentation and topic about exceptions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question