Continue Flask migration.
This commit is contained in:
parent
7c780d5c83
commit
ca3191a8ce
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user