Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
Would cause KeyError if 'folders' was not present in the data.
  • Loading branch information
GurpreetKang committed Jul 6, 2022
1 parent d801cb2 commit 86b6053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BitwardenDecrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ def decryptBitwardenJSON(options):
decryptedEntries[group] = groupItemsList

# Bitwarden exports always have "folders" first, not sure if it makes a difference for re-import.
decryptedEntries.move_to_end('folders', False)
if(decryptedEntries.get('folders')):
decryptedEntries.move_to_end('folders', False)

# Move Sends to end.
if(decryptedEntries.get('sends')):
Expand Down

0 comments on commit 86b6053

Please sign in to comment.