multiple exception | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

multiple exception

How to put Multiple exceptions into a single except block using parentheses

24th Mar 2018, 1:57 AM
Anwar Badurudeen
Anwar Badurudeen - avatar
1 Answer
+ 1
In Python, you can do this: except (RuntimeError, TypeError, NameError):
24th Mar 2018, 2:04 AM
cyk
cyk - avatar