Message375234
On Linux, converting IsADirectoryError to ZoneInfoNotFoundError is easy.
But on Windows, I don't think that converting any PermissionError into a ZoneInfoNotFoundError is a good idea. Maybe if PermissionError happens, we should check if the path is a directory.
Pseudo-code:
try:
<open and read file>
except OSError as exc:
if os.path.isdir(zone_path):
raise ZoneInfoNotFoundError
else:
raise |
|
Date |
User |
Action |
Args |
2020-08-12 13:16:13 | vstinner | set | recipients:
+ vstinner, python-dev, p-ganssle, josh.ja.butt |
2020-08-12 13:16:13 | vstinner | set | messageid: <1597238173.89.0.662433035839.issue41530@roundup.psfhosted.org> |
2020-08-12 13:16:13 | vstinner | link | issue41530 messages |
2020-08-12 13:16:13 | vstinner | create | |
|