docs: def _connection_error_wrapper(func, *args, **kwargs):
      """
      Wrap a call to func in a try/except that repeats on ConnectionError
      @param func:
      @param args:
      @param kwargs:
      @return:
      """
  
      counter = 0
      while counter < 5:
          try:
              result = func(*args, **kwargs)
              return result
          except Exception as ex:
              time.sleep(5)
              counter += 1
              logging.warning(str(ex))