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 ianare
Recipients amaury.forgeotdarc, christian.heimes, draghuram, facundobatista, gvanrossum, ianare
Date 2007-12-03.21:36:24
SpamBayes Score 0.08480505
Marked as misclassified No
Message-id <1196717784.89.0.64928028264.issue1545@psf.upfronthosting.co.za>
In-reply-to
Content
The problem with WindowsError is that it is not included in Linux. So if
there is an exception, it fails without showing the actual error. See
here (ubuntu 7.10 default install):

>>> try: print a
... except WindowsError:
...     print 'b'
... 
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError: name 'WindowsError' is not defined

It should return "NameError: name 'a' is not defined"

In my workaround, by placing the OSError before the WindowsError, this
problem is taken care of.

Let me see if I can figure out something a little better than always
ignoring this type of error ...

Thanks
History
Date User Action Args
2007-12-03 21:36:25ianaresetspambayes_score: 0.084805 -> 0.08480505
recipients: + ianare, gvanrossum, facundobatista, amaury.forgeotdarc, draghuram, christian.heimes
2007-12-03 21:36:24ianaresetspambayes_score: 0.084805 -> 0.084805
messageid: <1196717784.89.0.64928028264.issue1545@psf.upfronthosting.co.za>
2007-12-03 21:36:24ianarelinkissue1545 messages
2007-12-03 21:36:24ianarecreate