diff --git a/nwb_linkml/src/nwb_linkml/includes/hdmf.py b/nwb_linkml/src/nwb_linkml/includes/hdmf.py index 6c0c8bc..58cfb8c 100644 --- a/nwb_linkml/src/nwb_linkml/includes/hdmf.py +++ b/nwb_linkml/src/nwb_linkml/includes/hdmf.py @@ -340,7 +340,7 @@ class DynamicTableMixin(BaseModel): ) ) except Exception: - raise e + raise e from None class VectorDataMixin(BaseModel, Generic[T]): diff --git a/nwb_linkml/tests/test_logging.py b/nwb_linkml/tests/test_logging.py index 4585ed1..ddabac1 100644 --- a/nwb_linkml/tests/test_logging.py +++ b/nwb_linkml/tests/test_logging.py @@ -22,7 +22,7 @@ def test_init_logger(capsys, tmp_path): captured = capsys.readouterr() assert "WARNING" in captured.out - with open(log_file, "r") as lfile: + with open(log_file) as lfile: log_str = lfile.read() assert "WARNING" in log_str @@ -30,6 +30,6 @@ def test_init_logger(capsys, tmp_path): logger.info(info_msg) captured = capsys.readouterr() assert "INFO" in captured.out - with open(log_file, "r") as lfile: + with open(log_file) as lfile: log_str = lfile.read() assert "INFO" not in log_str