New course! Every coder should learn Generative AI!
Try a free lesson0
multiple exception
How to put Multiple exceptions into a single except block using parentheses
1 Answer
+ 1
In Python, you can do this:
except (RuntimeError, TypeError, NameError):