--> -->
 
 
UnboundLocalError
Python 3.8.10: /usr/bin/python3
Sat Jun 3 22:16:16 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/pdf/index.py in <module>
    168     pdfcontent = doQuery( myConnection )
    169 else:
=>  170     blogcontent, bloglist = catListing( myConnection )
    171 myConnection.close()
    172 
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>)
     78 </div>
     79 </div>   
=>   80     """.format(category,description,mycontent)
=>   81 
=>   82     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>