TypeError | Python 3.6.9: /usr/bin/python3 Sat Feb 4 03:46:03 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/blogpost.py in <module>() |
158 webpage = webpage.replace("#pagenation", pagenation) |
159 webpage = webpage.replace("#Blog", maincategory) |
=> 160 webpage = webpage.replace("#About", about) |
161 # webpage = webpage.replace("#conversion", myconverstion) |
162 # webpage = webpage.replace("#localscript", mylocalscript) |
webpage = '\n<!doctype html>\n<html lang="en">\n <head>\n <... -->\n\n\n </div>\n\n</main>\n\n \n </body>\n</html>\n', webpage.replace = <built-in method replace of str object>, about = None |
TypeError: replace() argument 2 must be str, not None
args =
('replace() argument 2 must be str, not None',)
with_traceback =
<built-in method with_traceback of TypeError object>