Fix import resolution for direct execution
This commit is contained in:
@@ -2,8 +2,10 @@ from __future__ import annotations
|
||||
|
||||
import html
|
||||
import re
|
||||
from typing import Optional
|
||||
from .config import settings
|
||||
try:
|
||||
from .config import settings
|
||||
except (ImportError, ValueError):
|
||||
from config import settings
|
||||
|
||||
|
||||
def split_message_chunks(text: str, limit: int = 4000) -> list[str]:
|
||||
|
||||
Reference in New Issue
Block a user