fix: replace bare except with except Exception in iksm.py

This commit is contained in:
Aman Sachan 2026-05-21 03:17:50 +00:00
parent 732c91e5ac
commit 200210f8a6
No known key found for this signature in database
GPG Key ID: D50A9E263569B417

View File

@ -56,7 +56,7 @@ def get_nsoapp_version():
NSOAPP_VERSION = ver
return NSOAPP_VERSION
except: # fallback to apple app store
except Exception: # fallback to apple app store
try:
page = requests.get("https://apps.apple.com/us/app/nintendo-switch-online/id1234806557")
soup = BeautifulSoup(page.text, 'html.parser')
@ -66,7 +66,7 @@ def get_nsoapp_version():
NSOAPP_VERSION = ver
return NSOAPP_VERSION
except: # error with web request
except Exception: # error with web request
pass
return NSOAPP_VER_FALLBACK