--> -->
 
 
UnboundLocalError
Python 3.6.9: /usr/bin/python3
Wed Jan 19 23:50:36 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/generallistall.py in <module>()
     50 
     51 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
=>   52 databasedata,category,pagepromo,promourl = doQuery( myConnection )
     53 myConnection.close()
     54 
databasedata undefined, category undefined, pagepromo undefined, promourl = 'https://www.cryan.com/images/generalblog.jpg', doQuery = <function doQuery>, myConnection = <mysql.connector.connection_cext.CMySQLConnection object>
 /home/cryan/secure_html/generallistall.py in doQuery(conn=<mysql.connector.connection_cext.CMySQLConnection object>)
     47                 promourl = row[10]
     48                 headerimage = row[10]
=>   49         return content,category,pagepromo,headerimage;    
     50 
     51 myConnection = mysql.connector.connect( host=hostname, user=username, passwd=password, db=database )
content = '', category undefined, pagepromo undefined, headerimage undefined

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