I have a wrapper function, what should I put as the return value if the variable to be returned is unknown?
def try_catch_in_loop(func_to_call: callable, *args):
for attempt in range(NUM_RETRYS + 1):
try:
if attempt < NUM_RETRYS:
return func_to_call(*args)
else:
raise RunTimeError("Err msg")
except gspread.exceptions.APIError:
request_limit_error()
Specifically looking what to put at the end of the function call ie:
def try_catch_in_loop(...) -> {What do I put here}: