diff --git a/person.py b/person.py index af7020df6..b1fa69444 100644 --- a/person.py +++ b/person.py @@ -890,7 +890,10 @@ def removeTagsForNickname(baseDir: str, nickname: str, filename = os.fsdecode(f) if not filename.endswith(".txt"): continue - tagFilename = os.path.join(directory, filename) + try: + tagFilename = os.path.join(directory, filename) + except BaseException: + continue if not os.path.isfile(tagFilename): continue if matchStr not in open(tagFilename).read():