Catching multiple exception types PREMIUM

Topic Series: Exceptions

Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
6 minute read Works on Python 3.7—3.10
Python Morsels
Watch as video
03:55

You can catch multiple types of exceptions at the same time in Python.

Handling an HTTPError exception

Here we ha...

Write more Pythonic code

Need to fill-in gaps in your Python skills? I send regular emails designed to do just that.