--> -->
 
 
UnboundLocalError
Python 3.8.10: /usr/bin/python3
Sat Jun 22 05:14:27 2024

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/daily/index.py in <module>
     91 
     92 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
=>   93 content,promo,maincategory,headerimage = doQuery( myConnection )
     94 myConnection.close()
     95 
content undefined, promo undefined, maincategory undefined, headerimage undefined, doQuery = <function doQuery>, myConnection = <mysql.connector.connection_cext.CMySQLConnection object>
 /home/cryan/secure_html/daily/index.py in doQuery(conn=<mysql.connector.connection_cext.CMySQLConnection object>)
     88                 teaser = row[4] + " Blog Posts";
     89                 weburl = row[3];
=>   90         return content,promo,maincategory,headerimage;   
     91 
     92 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
content = '', promo undefined, maincategory undefined, headerimage undefined

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