mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 02:00:19 +02:00
Reject bad redirects cleanly and ignore any icon read error
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d145537d9a
commit
0478626061
2 files changed
+6
-3
No files matched your search
+2
-2
@@ -204,8 +204,8 @@ def apk_info(path):
|
||||
}
|
||||
try:
|
||||
info['icon_png'] = _icon_png(z, names, _icons(app.get('icon'), res))
|
||||
except (zipfile.BadZipFile, RuntimeError, OSError):
|
||||
pass # a missing icon shouldn't stop the install
|
||||
except Exception: # noqa: BLE001 - any unreadable icon just means no icon
|
||||
pass
|
||||
return info
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user