1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 09:16:14 +01:00

do not trace, but exit with 1 on upload error

This commit is contained in:
Adrian Schröter 2006-09-26 09:02:00 +00:00
parent 89229112cc
commit f91bd60f3b

View File

@ -80,7 +80,15 @@ def putfile(url, username, password, file=None, strbuf=None):
pass
if not buf: break
conn.send(buf)
try:
conn.send(buf)
except:
print
print 'ERROR uploading %s' % file
print
os._exit(1)
fp.close()
reply, msg, headers = conn.getreply()