allow catchall errors
This commit is contained in:
@@ -13,6 +13,7 @@ import tables
|
|||||||
from tables import HDF5ExtError
|
from tables import HDF5ExtError
|
||||||
from params import default_params, load_params
|
from params import default_params, load_params
|
||||||
from units import U
|
from units import U
|
||||||
|
import traceback
|
||||||
|
|
||||||
class Rule:
|
class Rule:
|
||||||
def __init__(
|
def __init__(
|
||||||
@@ -240,6 +241,13 @@ class HDF5Container(BaseProcessor):
|
|||||||
super(HDF5Container, self)._process_rule(
|
super(HDF5Container, self)._process_rule(
|
||||||
name, rule, arg, overwrite, select, **kwargs
|
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:
|
finally:
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user