In case some files cannot be found, it is more user-friendly to raise before attempting (and failing) to read those files: that way, we get immediate feed-back of what's wrong.
This makes use of exception groups, a new feature in python 3.11 which for older versions has been backported by the exceptiongroup library (we can't make use of the except* syntax on python<3.11, though).
In case some files cannot be found, it is more user-friendly to raise before attempting (and failing) to read those files: that way, we get immediate feed-back of what's wrong.
This makes use of exception groups, a new feature in python 3.11 which for older versions has been backported by the
exceptiongroup
library (we can't make use of theexcept*
syntax onpython<3.11
, though).