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',
'Authorization': authHeader
}
tries = 0
quiet = not debug
tries = 0
while tries < 4:
postResult = \
postJson(session, actorUpdate, [], inboxUrl,
headers, 30, quiet)
if postResult:
break
print('tries = ' + str(tries))
time.sleep(2)
tries += 1