Continue Flask migration.

This commit is contained in:
yohan 2024-06-02 21:35:42 +02:00
parent 7c780d5c83
commit ca3191a8ce

View File

@ -197,7 +197,7 @@ class Set_mode_thermostat(Resource):
db.session.add(data)
db.session.commit()
return "OK", 201
except sqlite3.IntegrityError:
except sqlalchemy.exc.IntegrityError as e:
logging.error("catched")
return "K0", 400
except Exception as e: