mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 01:33:07 +02:00
...
This commit is contained in:
parent
8935170aa2
commit
cf7e268bf0
1 changed files with 4 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ def upload_one(self, fname):
|
|||
try:
|
||||
path = self.upload(os.path.abspath(fname), desc,
|
||||
labels=[typ, op, 'Featured'])
|
||||
except KeyboardInterrupt:
|
||||
raise SystemExit(1)
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
|
@ -327,6 +329,8 @@ def upload_installers(self):
|
|||
check_call(['rsync', '-z', '--progress', '-e', 'ssh -x', x,
|
||||
'%s,%s@frs.sourceforge.net:%s'%(self.USERNAME, self.PROJECT,
|
||||
self.rdir+'/')])
|
||||
except KeyboardInterrupt:
|
||||
raise SystemExit(1)
|
||||
except:
|
||||
print ('\nUpload failed, trying again in 30 seconds')
|
||||
time.sleep(30)
|
||||
|
|
|
|||
Loading…
Reference in a new issue