From 2038e8465437c648db0a418d9ac35df03d2b0a17 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 3 Oct 2023 12:27:04 +0200 Subject: [PATCH] ahhh --- Flask/app.py | 9 ++++----- version | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 6eb02d5..1542957 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -18,17 +18,16 @@ import redis pool = redis.ConnectionPool(host='localhost', port=6379, db=0) r = redis.Redis(connection_pool=pool) -pubsub = r.pubsub() -pubsub.subscribe('console') - def generate_output(): + pubsub = r.pubsub() + pubsub.subscribe('console') try : for message in pubsub.listen(): if message['type'] == 'message': print(message) yield f"data: {message['data'].decode()}\n\n" - except : - print("ya eu une erreur sad") + except Exception as e: + print(f"ya eu une erreur sad {e}") # the end diff --git a/version b/version index 103d6ad..266333c 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.47 +v6.6.48