mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2025-10-23 15:11:08 +00:00
Fix vault caching count and NoneType iteration issues
- Fix 'NoneType' object is not iterable error in decrypt_labs_remote_cdm - Fix vault count display showing 0/3 instead of actual successful vault count
This commit is contained in:
@@ -625,8 +625,9 @@ class DecryptLabsRemoteCDM:
|
|||||||
|
|
||||||
if "cached_keys" in session:
|
if "cached_keys" in session:
|
||||||
cached_keys = session.get("cached_keys", [])
|
cached_keys = session.get("cached_keys", [])
|
||||||
for cached_key in cached_keys:
|
if cached_keys:
|
||||||
all_keys.append(cached_key)
|
for cached_key in cached_keys:
|
||||||
|
all_keys.append(cached_key)
|
||||||
|
|
||||||
for license_key in license_keys:
|
for license_key in license_keys:
|
||||||
already_exists = False
|
already_exists = False
|
||||||
|
|||||||
@@ -74,7 +74,9 @@ class Vaults:
|
|||||||
for vault in self.vaults:
|
for vault in self.vaults:
|
||||||
if not vault.no_push:
|
if not vault.no_push:
|
||||||
try:
|
try:
|
||||||
success += bool(vault.add_keys(self.service, kid_keys))
|
# Count each vault that successfully processes the keys (whether new or existing)
|
||||||
|
vault.add_keys(self.service, kid_keys)
|
||||||
|
success += 1
|
||||||
except (PermissionError, NotImplementedError):
|
except (PermissionError, NotImplementedError):
|
||||||
pass
|
pass
|
||||||
return success
|
return success
|
||||||
|
|||||||
Reference in New Issue
Block a user