Skip to content

Commit 7c1d88a

Browse files
committed
Remove debugging statements
1 parent 710889a commit 7c1d88a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fractal_tasks_core/dev/lib_task_docs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,21 @@ def read_docs_info_from_file(
9898
where the path is relative to the folder where `task_list.py` is.
9999
"""
100100
logging.info("[read_docs_info_from_file] START")
101-
print(docs_info)
102-
print(task_list_path)
103101

102+
# Preliminary checks
104103
if not docs_info.startswith("file:"):
105104
raise ValueError(f"Invalid docs_info='{docs_info}'.")
106105
relative_path = Path(docs_info[5:])
107106
if relative_path.is_absolute():
108107
raise ValueError(
109108
f"Invalid docs_info='{docs_info}' (path must be relative)."
110109
)
111-
base_path = Path(task_list_path).parent
112110

111+
base_path = Path(task_list_path).parent
113112
docs_path = (base_path / relative_path).as_posix()
114-
115113
logging.info(f"[read_docs_info_from_file] Reading docs from {docs_path}")
116114
with open(docs_path, "r") as f:
117115
docs_info = f.read()
118116
logging.info("[read_docs_info_from_file] END")
117+
119118
return docs_info

0 commit comments

Comments
 (0)