mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1ead1415e3
commit
9d0607a896
@ -137,7 +137,7 @@ def upload_to_fosshub(files=None):
|
|||||||
'version': __version__,
|
'version': __version__,
|
||||||
})
|
})
|
||||||
jq = {'software': 'Calibre', 'apiKey':get_fosshub_data(), 'upload':entries}
|
jq = {'software': 'Calibre', 'apiKey':get_fosshub_data(), 'upload':entries}
|
||||||
rq = urllib2.urlopen('https://www.fosshub.com/JSTools/uploadJson', urllib.urlencode(jq))
|
rq = urllib2.urlopen('https://www.fosshub.com/JSTools/uploadJson', urllib.urlencode({'content':jq}))
|
||||||
if rq.getcode() != 200:
|
if rq.getcode() != 200:
|
||||||
raise SystemExit('Failed to upload to fosshub, with HTTP error code: %d' % rq.getcode())
|
raise SystemExit('Failed to upload to fosshub, with HTTP error code: %d' % rq.getcode())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user