Practice · 2 of 2
Error with Traceback
CHALLENGE
Difficulty: intermediate+25 XP
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.
Press Submit to check your solution.
Back to lesson: Practice: Logging Drills