MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / query_enterprise

Function query_enterprise

keepercommander/api.py:1473–1485  ·  view source on GitHub ↗
(params, force=False, tree_key=None)

Source from the content-addressed store, hash-verified

1471
1472
1473def query_enterprise(params, force=False, tree_key=None):
1474 try:
1475 if force is True and params.enterprise:
1476 params.enterprise = None
1477 qe(params, tree_key=tree_key)
1478 except Exception as e:
1479 share_account_by = params.get_share_account_timestamp()
1480 share_account_expired = share_account_by and datetime.today() > share_account_by
1481 # An exception is expected here if an Account Transfer is expired
1482 if share_account_expired:
1483 params.enterprise = None
1484 else:
1485 logging.warning(e, exc_info=True)
1486
1487
1488def login_and_get_mc_params_login_v3(params: KeeperParams, mc_id):

Callers 2

login_and_get_mc_paramsFunction · 0.70

Calls 2

warningMethod · 0.80

Tested by

no test coverage detected