Skip to content Skip to sidebar Skip to footer

Typeerror: 'nonetype' Object Is Not Subscriptable In Flask, Mysql Application

I am creating a login application using Flask-mysql. from flask import Flask, jsonify, request, json from flask_mysqldb import MySQL from datetime import datetime from flask_cors i

Solution 1:

fetchone() will return None if the query doesn't result in data. Add an

if rv isNone:

check to handle the case of someone providing an email address that isn't in the database.

Also, take a moment and look up "SQL Injection Attack".

Post a Comment for "Typeerror: 'nonetype' Object Is Not Subscriptable In Flask, Mysql Application"