From 98d568e9d65fb12f9fd6663160f07e6dc136c5da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 19 Feb 2024 16:07:04 +0100 Subject: [PATCH] fixed with import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index e96fa28..85a05d6 100644 --- a/server/app.py +++ b/server/app.py @@ -8,6 +8,7 @@ from getmac import get_mac_address import time import sys from multiprocessing import Process, Pipe, Queue +from queue import Empty from ast import literal_eval app = Flask(__name__) @@ -161,7 +162,7 @@ def tube_index_collector(ti_queue, ti_sender): ti_sender.send(item) item_old = item print("new item") - except queue.Empty: + except Empty: print("emtpy") if item_old is not None: ti_sender.send(item_old)