ruff: enable TRY rules

This commit is contained in:
Dima Gerasimov 2024-08-28 03:18:45 +01:00 committed by karlicoss
parent affa79ba3a
commit 1c5efc46aa
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