mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
renamed wrapper() retry_wrapper() so that it's more obvious in logs
This commit is contained in:
@@ -156,7 +156,7 @@ def retry_on_exception(func):
|
||||
if 'function_buffer' in args[0]:
|
||||
del args[0]['function_buffer']
|
||||
|
||||
def wrapper(*args, **kwargs):
|
||||
def retry_wrapper(*args, **kwargs):
|
||||
while True:
|
||||
try:
|
||||
# spinner_stop(spinner)
|
||||
@@ -237,7 +237,7 @@ def retry_on_exception(func):
|
||||
if user_message != '':
|
||||
return {}
|
||||
|
||||
return wrapper
|
||||
return retry_wrapper
|
||||
|
||||
|
||||
@retry_on_exception
|
||||
|
||||
Reference in New Issue
Block a user