From 823243b044adf2a68a67422e7245524dfdadd666 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 28 Oct 2020 09:43:55 +0000 Subject: [PATCH] Better debug --- manualapprove.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/manualapprove.py b/manualapprove.py index e06f3d26a..bd3eb2095 100644 --- a/manualapprove.py +++ b/manualapprove.py @@ -106,6 +106,9 @@ def manualApproveFollowRequest(session, baseDir: str, exists = True approveHandleFull = approveHandle if approveHandle not in approveFollowsStr: + print('Manual follow accept: ' + approveHandle + + ' not in requests file ' + approveFollowsFilename + + '\n' + approveFollowsStr) exists = False elif '@' in approveHandle: reqNick = approveHandle.split('@')[0] @@ -120,9 +123,10 @@ def manualApproveFollowRequest(session, baseDir: str, elif reqPrefix + '/accounts/' + reqNick not in approveFollowsStr: exists = False approveHandleFull = reqPrefix + '/accounts/' + reqNick + if not exists: + print('Manual follow accept: ' + approveHandleFull + + ' not in requests file ' + approveFollowsFilename) if not exists: - print('Manual follow accept: ' + approveHandle + - ' not in requests file ' + approveFollowsFilename) return approvefilenew = open(approveFollowsFilename + '.new', 'w+')