allow catchall errors

This commit is contained in:
Noe Brucy
2022-08-26 15:28:44 +02:00
parent 31bbf9c373
commit 08b7345036
+8
View File
@@ -13,6 +13,7 @@ import tables
from tables import HDF5ExtError
from params import default_params, load_params
from units import U
import traceback
class Rule:
def __init__(
@@ -240,6 +241,13 @@ class HDF5Container(BaseProcessor):
super(HDF5Container, self)._process_rule(
name, rule, arg, overwrite, select, **kwargs
)
except Exception as e:
if self.params.process.allow_error:
traceback.print_exc()
self._log(f"{repr(e)}", "ERROR")
pass
else:
raise
finally:
self.close()