mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 03:14:33 +01:00
py3 compat for fosshub upload
This commit is contained in:
parent
eab1237969
commit
135bfcbefe
1 changed files with 4 additions and 2 deletions
|
|
@ -218,8 +218,10 @@ def request(path, data=None):
|
|||
'publish': True,
|
||||
'isOldRelease': False,
|
||||
}
|
||||
# print(json.dumps(jq, indent=2))
|
||||
if not request('projects/{}/releases/'.format(project_id), data=json.dumps(jq)):
|
||||
data = json.dumps(jq)
|
||||
# print(data)
|
||||
data = data.encode('utf-8')
|
||||
if not request('projects/{}/releases/'.format(project_id), data=data):
|
||||
raise SystemExit('Failed to queue publish job with fosshub')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue