Posted on 26th July 2024|21 views
How can I catch multiple exceptions in one line?
Posted on 26th July 2024| views
try:
can_raise_any_errors():
except (SomeErrorOne, SomeErrorTwo) as errr:
handle(errr)