diff --git a/noxfile.py b/noxfile.py index 76cbfae..e19f2cc 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,7 +1,7 @@ import nox -@nox.session(python=[f"3.{v}" for v in range(9, 13)]) +@nox.session(python=[f"3.{v}" for v in range(9, 14)]) def test(session): session.install(".[test]") session.chdir("tests") diff --git a/src/scitrack/__init__.py b/src/scitrack/__init__.py index 9d5244f..0d8b124 100644 --- a/src/scitrack/__init__.py +++ b/src/scitrack/__init__.py @@ -194,11 +194,12 @@ def log_args(self, args=None): parent = inspect.currentframe().f_back args = inspect.getargvalues(parent).locals - for k in list(args): - if type(args[k]) == self.__class__ or type(args[k]).__name__ == "module": - del args[k] - - self.log_message(str(args), label="params") + result = { + k: args[k] + for k in list(args) + if type(args[k]) != self.__class__ and type(args[k]).__name__ != "module" + } + self.log_message(str(result), label="params") def shutdown(self): """safely shutdown the logger"""