Close the main database connections via shared_data.
(self)
| 885 | # ========================================================================= |
| 886 | |
| 887 | def _close_db(self): |
| 888 | """Close the main database connections via shared_data.""" |
| 889 | try: |
| 890 | from db_manager import close_db |
| 891 | close_db() |
| 892 | except Exception as e: |
| 893 | logger.error(f"Failed to close DB: {e}") |
| 894 | |
| 895 | def _reinit_db(self): |
| 896 | """Reinitialize the database connection after decryption.""" |
no test coverage detected