Skip to content

Commit

Permalink
wrapped BreachWatch/security-data updating on login in try-except block
Browse files Browse the repository at this point in the history
  • Loading branch information
aaunario-keeper committed Aug 29, 2024
1 parent b014b2c commit 2224f3f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions keepercommander/commands/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,13 @@ def execute(self, params, **kwargs):
SyncDownCommand().execute(params, force=True)
if params.is_enterprise_admin:
api.query_enterprise(params, True)
if params.breach_watch:
BreachWatchScanCommand().execute(params, suppress_no_op=True)
if params.enterprise_ec_key:
SyncSecurityDataCommand().execute(params, record='@all', suppress_no_op=True)
try:
if params.breach_watch:
BreachWatchScanCommand().execute(params, suppress_no_op=True)
if params.enterprise_ec_key:
SyncSecurityDataCommand().execute(params, record='@all', suppress_no_op=True)
except Exception as e:
logging.warning(f'A problem was encountered while updating BreachWatch/security data: {e}')


class CheckEnforcementsCommand(Command):
Expand Down

0 comments on commit 2224f3f

Please sign in to comment.