Skip to content

Commit 2224f3f

Browse files
wrapped BreachWatch/security-data updating on login in try-except block
1 parent b014b2c commit 2224f3f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

keepercommander/commands/utils.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,13 @@ def execute(self, params, **kwargs):
755755
SyncDownCommand().execute(params, force=True)
756756
if params.is_enterprise_admin:
757757
api.query_enterprise(params, True)
758-
if params.breach_watch:
759-
BreachWatchScanCommand().execute(params, suppress_no_op=True)
760-
if params.enterprise_ec_key:
761-
SyncSecurityDataCommand().execute(params, record='@all', suppress_no_op=True)
758+
try:
759+
if params.breach_watch:
760+
BreachWatchScanCommand().execute(params, suppress_no_op=True)
761+
if params.enterprise_ec_key:
762+
SyncSecurityDataCommand().execute(params, record='@all', suppress_no_op=True)
763+
except Exception as e:
764+
logging.warning(f'A problem was encountered while updating BreachWatch/security data: {e}')
762765

763766

764767
class CheckEnforcementsCommand(Command):

0 commit comments

Comments
 (0)