Skip to content

Commit

Permalink
fixes (via null-checks) for 1. login security-data update, 2. `shortc…
Browse files Browse the repository at this point in the history
…ut list`
  • Loading branch information
aaunario-keeper authored and sk-keeper committed Dec 27, 2024
1 parent 3dab50b commit 78a1de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keepercommander/commands/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def execute(self, params, **kwargs):
record = vault.KeeperRecord.load(params, record_uid)
if record:
folders = [params.folder_cache.get(x, params.root_folder) for x in records[record_uid]]
folders.sort(key=lambda x: x.name)
folders.sort(key=lambda x: x.name or '')
f = []
for x in folders:
is_shared = True if x.type in {BaseFolderNode.SharedFolderType, BaseFolderNode.SharedFolderFolderType} else False
Expand Down
3 changes: 3 additions & 0 deletions keepercommander/commands/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,10 +1364,13 @@ def get_record_uids():
ex_pw_rec_uids = no_pw_rec_uids & sd_rec_uids
ex_pw_recs = [(vault.KeeperRecord.load(params, r), None) for r in ex_pw_rec_uids]
to_update = [*pw_recs, *ex_pw_recs]
to_update = [(r, p) for r, p in to_update if r is not None]

bw_enabled = bool(params.breach_watch)

def has_stale_security_data(record):
if not record:
return False
record_security_data = sd_objs.get(record.record_uid, {})
sd_revision = record_security_data.get('revision', 0)
if bw_enabled:
Expand Down

0 comments on commit 78a1de5

Please sign in to comment.