I don't understand what you mean by the opposite (line 85 and 80 are strictly the same).
The idea here was: trying it once, if it fails, trying it again after clearing the token, and then if it fails again, let the error go because the cause is something else, and the error is legitimate.