fehlerbehebung

This commit is contained in:
moritz 2024-06-27 12:24:32 +02:00
parent 3ce4c42bc0
commit 2167e55012

View file

@ -32,7 +32,7 @@ def insert_data(temp, sensor_id, config):
cnx.commit()
cursor.close()
cnx.close()
print(f"Daten erfolgreich eingefügt in: {config["host"]}")
print(f'Daten erfolgreich eingefügt in: {config["host"]}')
except mysql.connector.Error as err:
if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
print("Etwas ist mit deinem Benutzernamen oder Passwort falsch.")