From f4c6939987702c2af94e62feccbd06d6f2f6674a Mon Sep 17 00:00:00 2001 From: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com> Date: Tue, 13 Aug 2024 21:32:45 +0530 Subject: [PATCH] Fix Attribute Issue in RTA common.py (#3983) --- rta/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rta/common.py b/rta/common.py index 47858425a..09afe2efe 100644 --- a/rta/common.py +++ b/rta/common.py @@ -208,7 +208,7 @@ def dependencies(*paths: str): @functools.wraps(f) def decorated(*args, **kwargs): if len(missing): - log("Missing dependencies for %s:%s()" % (f.func_code.co_filename, f.func_code.co_name), "!") + log("Missing dependencies for %s:%s()" % (f.__code__.co_filename, f.__code__.co_name), "!") for dep in missing: # NOTE os.path.relpath supports Path objects and does not exist in pathlib print(" - %s" % os.path.relpath(dep, BASE_DIR))