multiple exception | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 1
In Python, you can do this: except (RuntimeError, TypeError, NameError):
24th Mar 2018, 2:04 AM
cyk
cyk - avatar