Better debug

main
Bob Mottram 2020-10-28 09:43:55 +00:00
parent b8d6bbc8db
commit 823243b044
1 changed files with 6 additions and 2 deletions

View File

@ -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]
@ -121,8 +124,9 @@ def manualApproveFollowRequest(session, baseDir: str,
exists = False
approveHandleFull = reqPrefix + '/accounts/' + reqNick
if not exists:
print('Manual follow accept: ' + approveHandle +
print('Manual follow accept: ' + approveHandleFull +
' not in requests file ' + approveFollowsFilename)
if not exists:
return
approvefilenew = open(approveFollowsFilename + '.new', 'w+')