Snippets tagged “exception-class”
1 snippet uses this tag.
- How can I write a `try`/`except` block that catches all exceptions?Python
You can catch all exceptions by using the Exception class in the except block, like this:
1 snippet uses this tag.
You can catch all exceptions by using the Exception class in the except block, like this: