Practice ยท 2 of 2
Error with Traceback
Reusing the LOG_OUTPUT logger config, implement safe_run(fn) that calls fn(); on exception it must log at ERROR level with exc_info=True and return the string 'handled'. On success it returns fn's result.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Logging Drills