Comment 61 for bug 365881

Revision history for this message
Ray Folwell (ray-folwell) wrote :

Hi William,

It's interesting that you get the error on get_filesystem as well. That would explain why you get the message 3 times for each drive and I get it 2 times. Maybe itt is dependent on WIndows version? I'm XP Home SP3.

I am not familiar with the Windows API, but googling SetErrorMode suggests that this is the recommended way to avoid these messages.

I think you would still need to do something to avoid the message on the call to glob. You could wrap SetErrorMode calls round that, but the call in a common routine rather than windows, so I'm not sure of the implications of doing that.
Alternatively, you could set type=None if filesystem == "" in Drive