mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8935170aa2
commit
cf7e268bf0
@ -145,6 +145,8 @@ class UploadToGoogleCode(Command): # {{{
|
|||||||
try:
|
try:
|
||||||
path = self.upload(os.path.abspath(fname), desc,
|
path = self.upload(os.path.abspath(fname), desc,
|
||||||
labels=[typ, op, 'Featured'])
|
labels=[typ, op, 'Featured'])
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
raise SystemExit(1)
|
||||||
except:
|
except:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
@ -327,6 +329,8 @@ class UploadToSourceForge(Command): # {{{
|
|||||||
check_call(['rsync', '-z', '--progress', '-e', 'ssh -x', x,
|
check_call(['rsync', '-z', '--progress', '-e', 'ssh -x', x,
|
||||||
'%s,%s@frs.sourceforge.net:%s'%(self.USERNAME, self.PROJECT,
|
'%s,%s@frs.sourceforge.net:%s'%(self.USERNAME, self.PROJECT,
|
||||||
self.rdir+'/')])
|
self.rdir+'/')])
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
raise SystemExit(1)
|
||||||
except:
|
except:
|
||||||
print ('\nUpload failed, trying again in 30 seconds')
|
print ('\nUpload failed, trying again in 30 seconds')
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user