mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 05:52:50 +01:00
except on NotImplementedError in util.link
NotImplementedError is raised on python >= 3.2 and Windows versions before Vista. This is one part of the fix for #2114
This commit is contained in:
parent
22c6d85535
commit
65e38896ad
1 changed files with 4 additions and 0 deletions
|
|
@ -471,6 +471,10 @@ def link(path, dest, replace=False):
|
|||
raise FilesystemError(u'file exists', 'rename', (path, dest))
|
||||
try:
|
||||
os.symlink(path, dest)
|
||||
except NotImplementedError:
|
||||
# raised on python >= 3.2 and Windows versions before Vista
|
||||
raise FilesystemError(u'Windows XP does not support symbolic links.'
|
||||
'link', (path, dest), traceback.format_exc())
|
||||
except OSError:
|
||||
raise FilesystemError(u'Operating system does not support symbolic '
|
||||
u'links.', 'link', (path, dest),
|
||||
|
|
|
|||
Loading…
Reference in a new issue