ruff: enable TRY rules

This commit is contained in:
Dima Gerasimov 2024-08-28 03:18:45 +01:00
parent 557af7b692
commit c248aa7496
3 changed files with 11 additions and 2 deletions

View file

@ -141,9 +141,10 @@ open = kopen # TODO deprecate
def kexists(path: PathIsh, subpath: str) -> bool:
try:
kopen(path, subpath)
return True
except Exception:
return False
else:
return True
import zipfile