()
| 46 | of this function will be delay*max_attempts |
| 47 | """ |
| 48 | def wrapped_condition(): |
| 49 | try: |
| 50 | result = condition() |
| 51 | except: |
| 52 | return False, None |
| 53 | |
| 54 | return True, result |
| 55 | |
| 56 | attempt = 0 |
| 57 | while attempt < (max_attempts-1): |
no outgoing calls
no test coverage detected