Is it possible to use an "OR" logical operator in a Try/Exceptions Error handling in Python [duplicate]
Solution 1:
From Python Documentation:
An except clause may name multiple exceptions as a parenthesized tuple, for example
except (OSError, ValueError) as e:
pass
There is no sense for adding BaseException
there, because it's a base class for all exceptions.