fix: 修复语法错误和导入问题

This commit is contained in:
2026-04-11 12:32:23 +08:00
parent b228283133
commit d3236413f3
5 changed files with 5 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -467,11 +467,6 @@ async def handle_matrix_message(action: str, conversation_id: str = None, user_m
finally: finally:
db.close() db.close()
except Exception as e:
logger.error(f"处理Matrix消息失败: {e}")
finally:
db.close()
# ==================== 启动和关闭 ==================== # ==================== 启动和关闭 ====================

View File

@@ -202,3 +202,7 @@ class MatrixBot:
except: except:
pass pass
self.is_running = False self.is_running = False
# 全局实例
matrix_bot = MatrixBot()