main
Bob Mottram 2021-03-17 21:23:52 +00:00
parent eb9135ac3e
commit dacab2b638
1 changed files with 2 additions and 1 deletions

3
pgp.py
View File

@ -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