also hide windows-paths in exceptions

This commit is contained in:
ed 2021-09-25 18:19:17 +02:00
parent 189391fccd
commit b11db090d8

View file

@ -410,6 +410,10 @@ def log_thrs(log, ival, name):
def vol_san(vols, txt):
for vol in vols:
txt = txt.replace(vol.realpath.encode("utf-8"), vol.vpath.encode("utf-8"))
txt = txt.replace(
vol.realpath.encode("utf-8").replace(b"\\", b"\\\\"),
vol.vpath.encode("utf-8"),
)
return txt