--> -->
 
 
UnicodeEncodeError
Python 3.6.9: /usr/bin/python3
Thu Jan 20 00:30:24 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>()
    161 webpage = webpage.replace("#category", category)
    162 
    163 webpage = "".join([s for s in webpage.splitlines(True) if s.strip("\r\n")])
    164 
=>  165 print(webpage)
builtin print = <built-in function print>, webpage = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <m...ssorigin="anonymous"></script>\n </body>\n</html>\n'

UnicodeEncodeError: 'ascii' codec can't encode characters in position 15356-15358: ordinal not in range(128)
      args = ('ascii', '<!DOCTYPE html>\n<html lang="en">\n <head>\n <m...ssorigin="anonymous"></script>\n </body>\n</html>\n', 15356, 15359, 'ordinal not in range(128)')
      encoding = 'ascii'
      end = 15359
      object = '<!DOCTYPE html>\n<html lang="en">\n <head>\n <m...ssorigin="anonymous"></script>\n </body>\n</html>\n'
      reason = 'ordinal not in range(128)'
      start = 15356
      with_traceback = <built-in method with_traceback of UnicodeEncodeError object>