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 gvanrossum
Recipients amaury.forgeotdarc, christian.heimes, draghuram, facundobatista, gvanrossum, ianare
Date 2007-12-03.22:13:14
SpamBayes Score 0.15831414
Marked as misclassified No
Message-id <1196719995.01.0.169677530475.issue1545@psf.upfronthosting.co.za>
In-reply-to
Content
Not quite, because we only want to ignore WindowsError.

Maybe this would work?

try:
  WindowsError
except NameError:
  WindowsError = None

try:
  ....
except os.error, err:
  if WindowsError is not None or not isinstance(err, WindowsError):
    raise   # Pretend we didn't catch it
  pass   # Ignore it
History
Date User Action Args
2007-12-03 22:13:15gvanrossumsetspambayes_score: 0.158314 -> 0.15831414
recipients: + gvanrossum, facundobatista, amaury.forgeotdarc, draghuram, christian.heimes, ianare
2007-12-03 22:13:15gvanrossumsetspambayes_score: 0.158314 -> 0.158314
messageid: <1196719995.01.0.169677530475.issue1545@psf.upfronthosting.co.za>
2007-12-03 22:13:15gvanrossumlinkissue1545 messages
2007-12-03 22:13:14gvanrossumcreate