--> -->
 
 
KeyError
Python 3.6.9: /usr/bin/python3
Wed Jan 19 23:37:16 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/daily/today2.py in <module>()
     82 
     83 # // Only Displays the button if the cookie is enabled.
=>   84 if "cryan" in os.environ['HTTP_COOKIE']:
     85    content += f"""
     86 <p><a class="btn btn-danger btn-lg" role="button" href="https://www.cryan.com/inet2/superedit.php?{blogid}">Edit this Entry [{blogid}]</a>  <a class="btn btn-danger btn-lg" role="button" href="https://www.cryan.com/inet2/related/?{blogid}">Add Related [{blogid}]</a> <a class="btn btn-danger btn-lg" role="button" href="https://www.cryan.com/inet2/blogsubcategory.php?{blogid}">Add Subcategory</a></p>
os = <module 'os' from '/usr/lib/python3.6/os.py'>, os.environ = environ({'SCRIPT_URL': '/daily/today2.py', 'SCRI...ay=20160103', 'SCRIPT_NAME': '/daily/today2.py'})
 /usr/lib/python3.6/os.py in __getitem__(self=environ({'SCRIPT_URL': '/daily/today2.py', 'SCRI...ay=20160103', 'SCRIPT_NAME': '/daily/today2.py'}), key='HTTP_COOKIE')
    667         except KeyError:
    668             # raise KeyError with the original key value
=>  669             raise KeyError(key) from None
    670         return self.decodevalue(value)
    671 
builtin KeyError = <class 'KeyError'>, key = 'HTTP_COOKIE'

KeyError: 'HTTP_COOKIE'
      args = ('HTTP_COOKIE',)
      with_traceback = <built-in method with_traceback of KeyError object>