remove useless format_exc in util.move

There isn't a traceback for us to format here, so it errors out on
certain versions of python 3
This commit is contained in:
Johnny Robeson 2016-07-15 03:05:53 -04:00
parent 18b57ea022
commit 80bb550f45

View file

@ -443,8 +443,7 @@ def move(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))
# First, try renaming the file.
try: