fix: handle HTTPErrors from workshop (#477)

This commit is contained in:
aclist committed 2026-10-14 22:53:02 +09:00
1 parent 01be1247b4
commit 1752018331
4 files changed
+43 -4

No files matched your search

+5 -1
View File
@@ -122,7 +122,11 @@ class ModManager:
def unsub_atomic_mod(self, mod: str) -> None:
config_man = self.controller.get_config_man()
key = config_man.lookup(Preferences.STEAM)
unsubscribe(key, int(mod))
try:
unsubscribe(key, int(mod))
except Exception as e:
logger.critical(e)
return
steam_path = Path(self.path)
app_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)