feat(beatmapset): add error handling for missing beatmapset additions
This commit is contained in:
@@ -156,8 +156,13 @@ class BeatmapsetUpdateService:
|
|||||||
)
|
)
|
||||||
total = 0
|
total = 0
|
||||||
for missing in missings:
|
for missing in missings:
|
||||||
|
try:
|
||||||
if await self.add_missing_beatmapset(missing):
|
if await self.add_missing_beatmapset(missing):
|
||||||
total += 1
|
total += 1
|
||||||
|
except Exception as e:
|
||||||
|
logger.opt(colors=True).error(
|
||||||
|
f"<cyan>[BeatmapsetUpdateService]</cyan> failed to add missing beatmapset {missing}: {e}"
|
||||||
|
)
|
||||||
if total > 0:
|
if total > 0:
|
||||||
logger.opt(colors=True).info(f"<cyan>[BeatmapsetUpdateService]</cyan> added {total} missing beatmapset")
|
logger.opt(colors=True).info(f"<cyan>[BeatmapsetUpdateService]</cyan> added {total} missing beatmapset")
|
||||||
self._adding_missing = False
|
self._adding_missing = False
|
||||||
|
|||||||
Reference in New Issue
Block a user