mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Refactor decrypt_data error handling
This commit is contained in:
@@ -148,7 +148,9 @@ class VaultService:
|
||||
"""Restore a profile from ``data`` and sync."""
|
||||
|
||||
with self._lock:
|
||||
decrypted = self._manager.vault.encryption_manager.decrypt_data(data)
|
||||
decrypted = self._manager.vault.encryption_manager.decrypt_data(
|
||||
data, context="profile"
|
||||
)
|
||||
index = json.loads(decrypted.decode("utf-8"))
|
||||
self._manager.vault.save_index(index)
|
||||
self._manager.sync_vault()
|
||||
|
Reference in New Issue
Block a user