From 7cb8eea6fe89dc05a6c75a88d09baa77a5727bf3 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Wed, 14 Aug 2024 00:21:48 -0700 Subject: [PATCH] lint --- nwb_linkml/src/nwb_linkml/includes/hdmf.py | 2 +- nwb_linkml/tests/test_logging.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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