Fix Attribute Issue in RTA common.py (#3983)

This commit is contained in:
shashank-elastic
2024-08-13 21:32:45 +05:30
committed by GitHub
parent b0fd8659a2
commit f4c6939987
+1 -1
View File
@@ -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))