mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
eb9135ac3e
commit
dacab2b638
3
pgp.py
3
pgp.py
|
@ -579,14 +579,15 @@ def pgpPublicKeyUpload(baseDir: str, session,
|
||||||
'Content-type': 'application/json',
|
'Content-type': 'application/json',
|
||||||
'Authorization': authHeader
|
'Authorization': authHeader
|
||||||
}
|
}
|
||||||
tries = 0
|
|
||||||
quiet = not debug
|
quiet = not debug
|
||||||
|
tries = 0
|
||||||
while tries < 4:
|
while tries < 4:
|
||||||
postResult = \
|
postResult = \
|
||||||
postJson(session, actorUpdate, [], inboxUrl,
|
postJson(session, actorUpdate, [], inboxUrl,
|
||||||
headers, 30, quiet)
|
headers, 30, quiet)
|
||||||
if postResult:
|
if postResult:
|
||||||
break
|
break
|
||||||
|
print('tries = ' + str(tries))
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
tries += 1
|
tries += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue