mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 07:28:21 +08:00
Fix: add [at]wraps to retry_wrapper
to display actual function name in benchmark log output
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
from functools import wraps
|
||||
|
||||
import requests
|
||||
from adbutils.errors import AdbError
|
||||
@@ -17,6 +18,7 @@ class HermitError(Exception):
|
||||
|
||||
|
||||
def retry(func):
|
||||
@wraps(func)
|
||||
def retry_wrapper(self, *args, **kwargs):
|
||||
"""
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user