mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
78c650cb0e
commit
8c1ef52e28
@ -138,8 +138,9 @@ def upload_to_fosshub(files=None):
|
|||||||
})
|
})
|
||||||
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({'content':json.dumps(jq)}))
|
rq = urllib2.urlopen('https://www.fosshub.com/JSTools/uploadJson', urllib.urlencode({'content':json.dumps(jq)}))
|
||||||
|
resp = rq.read()
|
||||||
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 and response: %s' % (rq.getcode(), resp))
|
||||||
|
|
||||||
|
|
||||||
class UploadInstallers(Command): # {{{
|
class UploadInstallers(Command): # {{{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user