This post was flagged by the community and is temporarily hidden.
First, please edit your comment and remove the code you’ve added.
Second, the prompt is right when it says you should just retry until it works. However you don’t know how many times that can be. It could be the 2nd, the 5th, or even the 100th time through.
Soo… testing all those exceptions isn’t necessary. You’re basically giving it 4 tries to return the value and that’s if it even falls under each exception. And that’s not enough to pass the test case. We have a general exception we can use, so that might be helpful, and then what’s one way we could try it as many times as possible until it works? Wee want to try this code as much as possible until it works. So maybe review loops and what could be helpful?
Hope this helps!