From 1b67b75b2dc30c2999791955b3b8893822af77a2 Mon Sep 17 00:00:00 2001 From: bton Date: Wed, 17 Apr 2024 20:58:54 +0200 Subject: [PATCH] return to normal --- NFC_Reader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NFC_Reader.py b/NFC_Reader.py index fb3c671..c16ece3 100644 --- a/NFC_Reader.py +++ b/NFC_Reader.py @@ -20,10 +20,10 @@ def onTagSense(tag): id = int.from_bytes(tag.identifier, "big") response = requests.post(f"{url}tag_id", data={"id":id}) - #try: - if response.json()["mode"] == "balance" or response.json()["mode"] == "message": - #oled.balance(response.json()["username"], response.json()["balance"]) - return True + try: + if response.json()["mode"] == "balance" or response.json()["mode"] == "message": + #oled.balance(response.json()["username"], response.json()["balance"]) + return True except: None return False