> > Traceback (most recent call last):
> >   File "code.py", line 4, in <module>
> >     from controllers import admin, people
> >   File "G:\do\alldo\autopart007\web\controllers\people.py", line 3, in
> > <module>
> >     import web, md5, settings
> >   File "G:\do\alldo\autopart007\web\settings.py", line 7, in <module>
> >     refer = web.ctx.env["HTTP_REFERER"]
> >   File "D:\Python\lib\site-packages\web\utils.py", line 830, in __getattr__
> >     return getattr(self._getd(), key)
> >   File "D:\Python\lib\site-packages\web\utils.py", line 64, in __getattr__
> >     raise AttributeError, k
> > AttributeError: 'env'

There is an uncaught exception in getting the HTTP_REFERER variable.
Chances are that this variable hasn't been set.

Wrap the code in a try:...except: block and write something that deals
with the lack of that variable's existence, and that should solve your
problem.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to