I'm having a real hard time finding any examples of how to error handle in AsyncPG. I am executing this query:
await pg_con.execute("UPDATE users set x = $1, y = $2 WHERE z = $3", x, y, z)
I want to be able to catch any SQL errors, such as if the record does not exist. How do I do this?