Skip to content

Commit ff3ce55

Browse files
committed
fix(backend): fix cache initialization crash and add missing dependencies
1 parent 46fac05 commit ff3ce55

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎backend/cache_service.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
from backend.config import app_config
1616

1717
try:
18-
import redis
1918
from flask_caching import Cache
19+
except ImportError:
20+
pass
21+
22+
try:
23+
import redis
2024
REDIS_AVAILABLE = True
2125
except ImportError:
2226
REDIS_AVAILABLE = False

‎backend/requirements.txt‎

44 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)