mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
distgit: Don't raise, return the error to the client
Raising only sends the error to the logs, the client thinks everything went fine.
This commit is contained in:
@@ -186,7 +186,7 @@ def main():
|
||||
|
||||
except OSError as e:
|
||||
if e.errno != errno.EEXIST:
|
||||
raise e
|
||||
send_error(str(e))
|
||||
|
||||
try:
|
||||
os.link(dest_file, old_path)
|
||||
|
||||
Reference in New Issue
Block a user