Chapter 7

Error handling and debugging — quiz

5 questions · ~4 min

Chapter 7 quiz

Question 1 of 5

Your test calls a function that occasionally throws TimeoutError. You want to retry once on timeout but fail otherwise. Which structure works?