distgit: One more case of error handling

This commit is contained in:
Mathieu Bridon 2015-06-04 14:38:28 +02:00
parent f49e0abe06
commit 9b1e60ece2

View file

@ -209,7 +209,7 @@ def main():
except OSError as e:
if e.errno != errno.EEXIST:
raise e
send_error(str(e))
# The file already existed at the old path, hardlink over it
os.unlink(old_path)