--> -->
 
 
UnboundLocalError
Python 3.8.10: /usr/bin/python3
Sat Jun 3 20:36:50 2023

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>
     89 
     90 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
=>   91 content,promo,maincategory,headerimage = doQuery( myConnection )
     92 myConnection.close()
     93 
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>)
     86                 teaser = row[4] + " Blog Posts";
     87                 weburl = row[3];
=>   88         return content,promo,maincategory,headerimage;   
     89 
     90 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>