cur = conn.cursor()
try:
    cur.execute(
        "insert into cnet values ('r', 's', 'e', 'c', 'w', 's', 'i', 'd', 't')"
        )
except:
    print('Cannot insert')
Python psycopg2 not inserting into postgresql table