I have recently started to get regular tickets for TypeError: argument of
type 'NoneType' is not iterable on user_agent.is_mobile = 'Mobile' in
http_user_agent
1.
2.
3.
4.
5.
6.
7.
8.
Traceback (most recent call last):
File "/home/appgov/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/appgov/web2py/applications/apg/views/default/index.html", line
62, in <module>
File "/home/appgov/web2py/gluon/globals.py", line 340, in user_agent
user_agent.is_mobile = 'Mobile' in http_user_agent
TypeError: argument of type 'NoneType' is not iterable
Variables
user_agent.is_mobile None
http_user_agent None
user_agent <Storage {'platform': <Storage {'version': None, 'name': None}>}>
I'm using 2.15.4 with Python 2.7 on PythonAnywhere.
Any suggestions?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.