mirror of
https://github.com/beetbox/beets.git
synced 2026-01-19 14:45:17 +01:00
remove tb.format_exc() from util.link replace
This commit is contained in:
parent
80bb550f45
commit
22c6d85535
1 changed files with 1 additions and 2 deletions
|
|
@ -468,8 +468,7 @@ def link(path, dest, replace=False):
|
|||
path = syspath(path)
|
||||
dest = syspath(dest)
|
||||
if os.path.exists(dest) and not replace:
|
||||
raise FilesystemError(u'file exists', 'rename', (path, dest),
|
||||
traceback.format_exc())
|
||||
raise FilesystemError(u'file exists', 'rename', (path, dest))
|
||||
try:
|
||||
os.symlink(path, dest)
|
||||
except OSError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue