mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: add [at]wraps to retry_wrapper
to display actual function name in benchmark log output
This commit is contained in:
parent
e8cd48b096
commit
0f96eb3bbc
@ -1,4 +1,5 @@
|
||||
import os
|
||||
from functools import wraps
|
||||
|
||||
import lz4.block
|
||||
from adbutils.errors import AdbError
|
||||
@ -15,6 +16,7 @@ class AscreencapError(Exception):
|
||||
|
||||
|
||||
def retry(func):
|
||||
@wraps(func)
|
||||
def retry_wrapper(self, *args, **kwargs):
|
||||
"""
|
||||
Args:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import socket
|
||||
import time
|
||||
from functools import wraps
|
||||
|
||||
from adbutils.errors import AdbError
|
||||
|
||||
@ -180,6 +181,7 @@ class MinitouchOccupiedError(Exception):
|
||||
|
||||
|
||||
def retry(func):
|
||||
@wraps(func)
|
||||
def retry_wrapper(self, *args, **kwargs):
|
||||
"""
|
||||
Args:
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
from functools import wraps
|
||||
from json.decoder import JSONDecodeError
|
||||
|
||||
import uiautomator2 as u2
|
||||
@ -13,6 +14,7 @@ from module.logger import logger
|
||||
|
||||
|
||||
def retry(func):
|
||||
@wraps(func)
|
||||
def retry_wrapper(self, *args, **kwargs):
|
||||
"""
|
||||
Args:
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import re
|
||||
from functools import wraps
|
||||
|
||||
from adbutils.errors import AdbError
|
||||
|
||||
@ -9,6 +10,7 @@ from module.logger import logger
|
||||
|
||||
|
||||
def retry(func):
|
||||
@wraps(func)
|
||||
def retry_wrapper(self, *args, **kwargs):
|
||||
"""
|
||||
Args:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user