--> -->
 
 
KeyError
Python 3.5.3: /usr/bin/python3.5
Sat Jun 3 16:57:39 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.

 /usr/lib/cgi-bin/prod/cis/main.py in ()
     83 
     84 #if visitor comes from codeitsmartly.com then redirect him to the secured page https://codeitsmartly.com
=>   85 if os.environ['HTTP_REFERER'] == 'http://codeitsmartly.com/':
     86     print ('<html><head>')
     87     print ('<script type="text/javascript">')
os = <module 'os' from '/usr/lib/python3.5/os.py'>, os.environ = environ({'SERVER_SOFTWARE': 'Apache/2.4.25 (Debi...reater Manchester', 'SSL_SERVER_M_VERSION': '3'})
 /usr/lib/python3.5/os.py in __getitem__(self=environ({'SERVER_SOFTWARE': 'Apache/2.4.25 (Debi...reater Manchester', 'SSL_SERVER_M_VERSION': '3'}), key='HTTP_REFERER')
    723         except KeyError:
    724             # raise KeyError with the original key value
=>  725             raise KeyError(key) from None
    726         return self.decodevalue(value)
    727 
builtin KeyError = <class 'KeyError'>, key = 'HTTP_REFERER'

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