show visual message for OSError from importing vineyard in vineyard-preferences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Vineyard |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This is more a feature request than a bug report.
When the ~/.wine directory is missing, importing vineyard module fails with rather obvious OSError:
Traceback (most recent call last):
File "/usr/bin/
import vineyard
File "/usr/lib/
from common import *
File "/usr/lib/
import wine
File "/usr/lib/
prefixes.
File "/usr/lib/
drives.
File "/usr/lib/
for drive in os.listdir(
OSError: [Errno 2] No such file or directory: '/home/
I suppose this is desired behaviour, but this error is not caught in vineyard-
Changed in vineyard: | |
status: | Fix Committed → Fix Released |
Actually no, it's not desired behaviour, so thanks for reporting it.
python-wine will now create the ~/.wine directory and configuration if it's missing.