From dacab2b638aa33b6fb15b0ce4a3b26ffae6eb670 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 17 Mar 2021 21:23:52 +0000 Subject: [PATCH] Debug --- pgp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgp.py b/pgp.py index 90af8d1b8..50ad0cc5c 100644 --- a/pgp.py +++ b/pgp.py @@ -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