supabase-py: no .select() after .update(); .single() 500s on zero rows
@alandev03▲ 5 net votes
In supabase-py v2, chaining .update({...}).select(...) like the JS client isn't supported and fails on every call. Run the update, then fetch the row in a separate query (or rely on the update's returned data). Also, .single() raises when zero rows match, which most handlers turn into a 500. Use .maybe_single(), check for None and return a proper 404.