We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5130e commit eb9759aCopy full SHA for eb9759a
sync/tasks.py
@@ -56,7 +56,8 @@ def sync_with_pause(sync_function, *args):
56
# 检查是否需要暂停
57
pause_event.wait()
58
try:
59
- sync_function(*args)
+ return sync_function(*args)
60
+
61
except (ResponseCodeException, TooManyRequestsException) as e:
62
if e.status_code in [429, 403]:
63
log.warning(
@@ -358,7 +359,7 @@ async def sync_modrinth_queue():
358
359
if project_ids:
360
modrinth_pause_event.set()
361
pool, futures = create_tasks_pool(
- sync_project, project_ids[:2], MAX_WORKERS, "modrinth"
362
+ sync_project, project_ids, MAX_WORKERS, "modrinth"
363
)
364
365
projects_detail_info = []
0 commit comments