mirror of https://github.com/aliasrobotics/cai.git
fix common.py to avoid START_TIME import from cli in common.py
This commit is contained in:
parent
4dc3bd3548
commit
16eaa63aa9
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue