I think that I have isolated where in the wubi code these dialogs pop up.
The first set are when GetDiskFreeSpaceExW is called at line 69 in backends/win32/drive.py. The second set are when glob.glob is called at line 650 in backends/common/backend.py
If it is a CD or USB card reader from which the media has been removed, you get the "Please insert disk message". If it is a card reader than has not had a card in since it was mounted, you get the Exception Error.
The solution might be to check filesystem in the __init__ method of Drive and set type = None if filesystem is blank.
I attach a patch that does that (patch at lines 43-50)
I think that I have isolated where in the wubi code these dialogs pop up. win32/drive. py. The second set are when glob.glob is called at line 650 in backends/ common/ backend. py
The first set are when GetDiskFreeSpaceExW is called at line 69 in backends/
If it is a CD or USB card reader from which the media has been removed, you get the "Please insert disk message". If it is a card reader than has not had a card in since it was mounted, you get the Exception Error.
The solution might be to check filesystem in the __init__ method of Drive and set type = None if filesystem is blank.
I attach a patch that does that (patch at lines 43-50)