mirror of https://gitlab.com/bashrc2/epicyon
Trap exception on tag
parent
e12b6483c3
commit
3ea12bc145
|
@ -890,7 +890,10 @@ def removeTagsForNickname(baseDir: str, nickname: str,
|
|||
filename = os.fsdecode(f)
|
||||
if not filename.endswith(".txt"):
|
||||
continue
|
||||
try:
|
||||
tagFilename = os.path.join(directory, filename)
|
||||
except BaseException:
|
||||
continue
|
||||
if not os.path.isfile(tagFilename):
|
||||
continue
|
||||
if matchStr not in open(tagFilename).read():
|
||||
|
|
Loading…
Reference in New Issue