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

Function query_enterprise

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

Source from the content-addressed store, hash-verified

1541
1542
1543def query_enterprise(params, force=False, tree_key=None):
1544 try:
1545 if force is True and params.enterprise:
1546 params.enterprise = None
1547 qe(params, tree_key=tree_key)
1548 except Exception as e:
1549 share_account_by = params.get_share_account_timestamp()
1550 share_account_expired = share_account_by and datetime.today() > share_account_by
1551 # An exception is expected here if an Account Transfer is expired
1552 if share_account_expired:
1553 params.enterprise = None
1554 else:
1555 logging.warning(e, exc_info=True)
1556
1557
1558def 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