#3104: 'float' object has no attribute 'split'
-------------------------------------+------------------------------
Reporter: anonymous | Owner: nobody
Type: defect | Status: reopened
Milestone: | Component: Core (Other)
Version: | Severity: normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+------------------------------
Changes (by anonymous):
* status: closed => reopened
* ui_ux: => 0
* resolution: invalid =>
Comment:
Having AttributeError 'NoneType' object has no attribute 'strip' problem
Environment:
Request Method: GET
Request URL: http://172.16.13.46:8080/addRecord/
Django Version: 1.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'CI']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.csrf.CsrfResponseMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py"
in get_response
111. response = callback(request,
*callback_args, **callback_kwargs)
File "/home/dbarker/cisite/CI/views.py" in addRecord
73. u_data = collectdata(u) #collect the url information
File "/home/dbarker/cisite/CI/datagrab.py" in collectdata
48. data = urllib.urlopen(someurl)
File "/usr/lib/python2.6/urllib.py" in urlopen
86. return opener.open(url)
File "/usr/lib/python2.6/urllib.py" in open
179. fullurl = unwrap(toBytes(fullurl))
File "/usr/lib/python2.6/urllib.py" in unwrap
1034. url = url.strip()
Exception Type: AttributeError at /addRecord/
Exception Value: 'NoneType' object has no attribute 'strip'
--
Ticket URL: <https://code.djangoproject.com/ticket/3104#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en.