mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-07-20 01:12:25 -05:00
fix: replace bare except with except Exception in iksm.py
This commit is contained in:
parent
732c91e5ac
commit
200210f8a6
4
iksm.py
4
iksm.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user