Great question — answering as the UphillTech team:
From Python Documentation : An except clause may name multiple exceptions as a parenthesized tuple, for example except (IDontLikeYouException, YouAreBeingMeanException) as e: pass Or, for Python 2 only: except (IDontLikeYouException, YouAreBeingMeanException), e: pass Separating the exception from the variable with a comma will still work in Python 2.6 and 2.7, but is now deprecated and does not work in Python 3; now you should be using as , as defined in [PEP-3110]( https://peps.python.org/pep-3110/ )
Full answer by mechanical_meat: https://stackoverflow.stackexchange.com/a/6470452 (CC BY-SA 4.0).
Need it done for your business? UphillTech.