--> -->
 
 
KeyError
Python 3.8.10: /usr/bin/python3
Fri Apr 26 16:39:11 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/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.8/os.py'>, os.environ = environ({'HTTPS': 'on', 'SSL_TLS_SNI': 'www.crya...AME': '/daily/today2.py', 'LC_CTYPE': 'C.UTF-8'})
 /usr/lib/python3.8/os.py in __getitem__(self=environ({'HTTPS': 'on', 'SSL_TLS_SNI': 'www.crya...AME': '/daily/today2.py', 'LC_CTYPE': 'C.UTF-8'}), key='HTTP_COOKIE')
    673         except KeyError:
    674             # raise KeyError with the original key value
=>  675             raise KeyError(key) from None
    676         return self.decodevalue(value)
    677 
builtin KeyError = <class 'KeyError'>, key = 'HTTP_COOKIE'

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