Spaces:
Runtime error
Runtime error
File size: 411 Bytes
29c4d1d | 1 2 3 4 5 6 7 8 9 10 11 | 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)}") |