zenith / src /utils /helpers.py
hello-yaaash25's picture
Initial commit without binary files
29c4d1d
Raw History Blame Contribute Delete
411 Bytes
def log_message(message: str) -> None:
"""Logs a message to the console."""
print(f"[LOG] {message}")
def format_data(data: dict) -> str:
"""Formats a dictionary into a string for display."""
return "\n".join(f"{key}: {value}" for key, value in data.items())
def handle_error(error: Exception) -> None:
"""Handles errors by logging them."""
log_message(f"Error occurred: {str(error)}")