(params, force=False, tree_key=None)
| 1541 | |
| 1542 | |
| 1543 | def 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 | |
| 1558 | def login_and_get_mc_params_login_v3(params: KeeperParams, mc_id): |
no test coverage detected