Skip to content

Commit

Permalink
Merge pull request #26 from GavinHuttley/develop
Browse files Browse the repository at this point in the history
Address 3.13 bug
  • Loading branch information
GavinHuttley authored Oct 7, 2024
2 parents 1821eaf + 2b4ad51 commit 79c08c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
11 changes: 6 additions & 5 deletions src/scitrack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 79c08c5

Please sign in to comment.