feat: add error handling for state fetching in App component
This commit is contained in:
@@ -3,6 +3,8 @@ import io
|
||||
import json
|
||||
import time
|
||||
from minio import Minio
|
||||
import redis
|
||||
import os
|
||||
|
||||
DEFAULT_STATE = {
|
||||
"text": {
|
||||
@@ -27,7 +29,7 @@ MINIO_CLIENT = Minio(
|
||||
secure=True,
|
||||
)
|
||||
BUCKET = "tv-control"
|
||||
|
||||
r = redis.Redis(host='194.15.36.205',username="default", port=12004, db=12, password=os.getenv("REDIS"))
|
||||
def _read_state():
|
||||
try:
|
||||
with open("/app/state.json", "r") as f:
|
||||
|
||||
Reference in New Issue
Block a user