Bad variable reuse

main
Bob Mottram 2020-07-13 10:34:04 +01:00
parent 092bc00d1e
commit 94b4529cf6
1 changed files with 2 additions and 2 deletions

View File

@ -1744,8 +1744,8 @@ def likeNotify(baseDir: str, domain: str, onionDomain: str,
# was there a previous like notification?
if os.path.isfile(prevLikeFile):
# is it the same as the current notification ?
with open(prevLikeFile, 'r') as likeFile:
prevLikeStr = likeFile.read()
with open(prevLikeFile, 'r') as fp:
prevLikeStr = fp.read()
if prevLikeStr == likeStr:
return
try: