Skip to content

Commit 9bc9a00

Browse files
committed
v2.5.35: 优化部分下载失败时异常处理
1 parent 58cf648 commit 9bc9a00

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/jmcomic/jm_downloader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33

44
def catch_exception(func):
5+
from functools import wraps
6+
7+
@wraps(func)
58
def wrapper(self, *args, **kwargs):
69
self: JmDownloader
710
try:
@@ -20,7 +23,6 @@ def wrapper(self, *args, **kwargs):
2023

2124
raise e
2225

23-
wrapper.__name__ = func.__name__
2426
return wrapper
2527

2628

0 commit comments

Comments
 (0)