(params, force=False, tree_key=None)
| 1471 | |
| 1472 | |
| 1473 | def 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 | |
| 1488 | def login_and_get_mc_params_login_v3(params: KeeperParams, mc_id): |
no test coverage detected