Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
'NoneType' object is not subscriptable #1
Found the error. When an inactive user deletes itself its account, following query returns 'None':
cur.execute("select last_sign_in_at from users where account_id=(%s)", (id,))
row is None because the user does not exist in the database.