--> -->
 
 
UnboundLocalError
Python 3.6.9: /usr/bin/python3
Wed Jan 19 23:30:45 2022

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/cryan/secure_html/generalblog.py in <module>()
    101 
    102 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
=>  103 xcontent,pagetitle,mytagline,headerimage,homepage = doQuery( myConnection )
    104 
    105 
xcontent undefined, pagetitle undefined, mytagline undefined, headerimage undefined, homepage undefined, doQuery = <function doQuery>, myConnection = <mysql.connector.connection_cext.CMySQLConnection object>
 /home/cryan/secure_html/generalblog.py in doQuery(conn=<mysql.connector.connection_cext.CMySQLConnection object>)
     98         homepage = row[7]
     99 
=>  100     return content,teaser,mytagline,headerimage,homepage;    
    101 
    102 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
content = '', teaser undefined, mytagline undefined, headerimage undefined, homepage undefined

UnboundLocalError: local variable 'teaser' referenced before assignment
      args = ("local variable 'teaser' referenced before assignment",)
      with_traceback = <built-in method with_traceback of UnboundLocalError object>