mirror of https://gitlab.com/bashrc2/epicyon
Better debug
parent
b8d6bbc8db
commit
823243b044
|
@ -106,6 +106,9 @@ def manualApproveFollowRequest(session, baseDir: str,
|
||||||
exists = True
|
exists = True
|
||||||
approveHandleFull = approveHandle
|
approveHandleFull = approveHandle
|
||||||
if approveHandle not in approveFollowsStr:
|
if approveHandle not in approveFollowsStr:
|
||||||
|
print('Manual follow accept: ' + approveHandle +
|
||||||
|
' not in requests file ' + approveFollowsFilename +
|
||||||
|
'\n' + approveFollowsStr)
|
||||||
exists = False
|
exists = False
|
||||||
elif '@' in approveHandle:
|
elif '@' in approveHandle:
|
||||||
reqNick = approveHandle.split('@')[0]
|
reqNick = approveHandle.split('@')[0]
|
||||||
|
@ -120,9 +123,10 @@ def manualApproveFollowRequest(session, baseDir: str,
|
||||||
elif reqPrefix + '/accounts/' + reqNick not in approveFollowsStr:
|
elif reqPrefix + '/accounts/' + reqNick not in approveFollowsStr:
|
||||||
exists = False
|
exists = False
|
||||||
approveHandleFull = reqPrefix + '/accounts/' + reqNick
|
approveHandleFull = reqPrefix + '/accounts/' + reqNick
|
||||||
|
if not exists:
|
||||||
|
print('Manual follow accept: ' + approveHandleFull +
|
||||||
|
' not in requests file ' + approveFollowsFilename)
|
||||||
if not exists:
|
if not exists:
|
||||||
print('Manual follow accept: ' + approveHandle +
|
|
||||||
' not in requests file ' + approveFollowsFilename)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
approvefilenew = open(approveFollowsFilename + '.new', 'w+')
|
approvefilenew = open(approveFollowsFilename + '.new', 'w+')
|
||||||
|
|
Loading…
Reference in New Issue