--> -->
 
 
UnboundLocalError
Python 3.8.10: /usr/bin/python3
Tue Mar 19 03:21:45 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/pdf/index.py in <module>
    184     pdfcontent = doQuery( myConnection )
    185 else:
=>  186     blogcontent, bloglist = catListing( myConnection )
    187 myConnection.close()
    188 
blogcontent undefined, bloglist undefined, catListing = <function catListing>, myConnection = <mysql.connector.connection_cext.CMySQLConnection object>
 /home/cryan/secure_html/pdf/index.py in catListing(conn=<mysql.connector.connection_cext.CMySQLConnection object>)
     93 </div>
     94 </div>   
=>   95     """.format(category,description,mycontent)
=>   96 
=>   97     return content,mylist;    

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