From 49174941bf73cce6d39441c3cee1214a019dbec0 Mon Sep 17 00:00:00 2001 From: Yuman Hordijk Date: Thu, 18 Jul 2024 14:21:19 +0200 Subject: [PATCH] Ignoring some Ruff errors --- src/tcutility/results/__init__.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tcutility/results/__init__.py b/src/tcutility/results/__init__.py index f50c2585..d369308a 100644 --- a/src/tcutility/results/__init__.py +++ b/src/tcutility/results/__init__.py @@ -105,16 +105,13 @@ def read(calc_dir: Union[str, pl.Path]) -> Result: elif ret.engine == "orca": try: ret.orca = orca.get_calc_settings(ret) - except: + except: # noqa ret.orca = None - # print('Error reading:', calc_dir) - # raise + try: ret.properties = orca.get_properties(ret) - except: + except: # noqa ret.properties = None - # print('Error reading:', calc_dir) - # raise # unload cached KFReaders associated with this calc_dir to_delete = [key for key in cache._cache if key.startswith(os.path.abspath(calc_dir))]