Remove debug

merge-requests/6/head
Bob Mottram 2019-12-29 13:05:33 +00:00
parent 10fde1cb21
commit 2276b5661b
1 changed files with 2 additions and 4 deletions

View File

@ -77,13 +77,11 @@ def manualApproveFollowRequest(session,baseDir: str, \
accountDir=baseDir+'/accounts/'+handle accountDir=baseDir+'/accounts/'+handle
approveFollowsFilename=accountDir+'/followrequests.txt' approveFollowsFilename=accountDir+'/followrequests.txt'
if not os.path.isfile(approveFollowsFilename): if not os.path.isfile(approveFollowsFilename):
if debug: print('Manual follow accept: follow requests file '+approveFollowsFilename+' not found')
print('Manual follow accept: follow requests file '+approveFollowsFilename+' not found')
return return
# is the handle in the requests file? # is the handle in the requests file?
if approveHandle not in open(approveFollowsFilename).read(): if approveHandle not in open(approveFollowsFilename).read():
if debug: print('Manual follow accept: '+approveHandle+' not in requests file '+approveFollowsFilename)
print('Manual follow accept: '+approveHandle+' not in requests file '+approveFollowsFilename)
return return
approvefilenew = open(approveFollowsFilename+'.new', 'w+') approvefilenew = open(approveFollowsFilename+'.new', 'w+')