remove tb.format_exc() from util.link replace

This commit is contained in:
Johnny Robeson 2016-07-15 17:40:48 -04:00
parent 80bb550f45
commit 22c6d85535

View file

@ -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: