This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients josh.ja.butt, p-ganssle, python-dev, vstinner
Date 2020-08-12.13:16:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597238173.89.0.662433035839.issue41530@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-08-12 13:16:13vstinnersetrecipients: + vstinner, python-dev, p-ganssle, josh.ja.butt
2020-08-12 13:16:13vstinnersetmessageid: <1597238173.89.0.662433035839.issue41530@roundup.psfhosted.org>
2020-08-12 13:16:13vstinnerlinkissue41530 messages
2020-08-12 13:16:13vstinnercreate