Skip to content
Snippets Groups Projects
Commit 43f1d84a authored by penenadpi's avatar penenadpi Committed by Anze Luzar
Browse files

Added TODO for utilities

parent b109d379
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,7 @@ def file_to_string(file_path: str) -> str:
try:
with open(file_path, "r") as text_file:
output = str(text_file.read())
# TODO: Narrow exceptions for this one and similar functions
except Exception as e:
raise Exception(f"Error while reading file: {str(e)}.")
return output
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment