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))