def looping_retry(func, *args):
    while True:
        try:
            return func(*args)
        except Exception:
            pass

import time


def looping_retry(func, *args):
    while True:
        try:
            return func(*args)
        except Exception:
            time.sleep(0.5)
            pass

Add pause during looping retry
Add pause during looping retry

+ import time
+ 
+ 
  def looping_retry(func, *args):
      while True:
          try:
              return func(*args)
          except Exception:
+             time.sleep(0.5)
              pass
  
Add pause during looping retry
## Code Before:
def looping_retry(func, *args):
    while True:
        try:
            return func(*args)
        except Exception:
            pass

## Instruction:
Add pause during looping retry
## Code After:
import time


def looping_retry(func, *args):
    while True:
        try:
            return func(*args)
        except Exception:
            time.sleep(0.5)
            pass
