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)
|
filename = os.fsdecode(f)
|
||||||
if not filename.endswith(".txt"):
|
if not filename.endswith(".txt"):
|
||||||
continue
|
continue
|
||||||
tagFilename = os.path.join(directory, filename)
|
try:
|
||||||
|
tagFilename = os.path.join(directory, filename)
|
||||||
|
except BaseException:
|
||||||
|
continue
|
||||||
if not os.path.isfile(tagFilename):
|
if not os.path.isfile(tagFilename):
|
||||||
continue
|
continue
|
||||||
if matchStr not in open(tagFilename).read():
|
if matchStr not in open(tagFilename).read():
|
||||||
|
|
Loading…
Reference in New Issue