fix common.py to avoid START_TIME import from cli in common.py

This commit is contained in:
lidia9 2025-04-30 12:22:24 +02:00
parent 4dc3bd3548
commit 16eaa63aa9
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,13 @@ import uuid
import sys
from wasabi import color # pylint: disable=import-error
from cai.util import format_time
from cai.cli import START_TIME
# Instead of direct import
try:
from cai.cli import START_TIME
except ImportError:
START_TIME = None
# Global dictionary to store active sessions
ACTIVE_SESSIONS = {}