|
|
Adding or changing an avatar in firefox results in this error after
submitting the crop. It does not happen in IE. Any ideas?
Below is the traceback.
Environment:
Request Method: POST
Request URL: http://somesite.com/accounts/profile/edit/avatar/crop/
Django Version: 1.0-final-SVN-unknown
Python Version: 2.5.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
'myproject.step',
'myproject.homepage',
'userprofile',
'myproject.customprofile',
'sorl.thumbnail',
'gdata',
'atom']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "path/to/lib/python2.5/django/core/handlers/base.py" in get_response
86. response = callback(request, *callback_args,
**callback_kwargs)
File "/path/to/lib/python2.5/django/contrib/auth/decorators.py" in __call__
67. return self.view_func(request, *args, **kwargs)
File "/path/to/lib/python2.5/site-packages/userprofile/views.py" in
avatarcrop
245. if form.is_valid():
File "/path/to/lib/python2.5/django/forms/forms.py" in is_valid
120. return self.is_bound and not bool(self.errors)
File "/path/to/lib/python2.5/django/forms/forms.py" in _get_errors
111. self.full_clean()
File "/path/to/lib/python2.5/django/forms/forms.py" in full_clean
234. self.cleaned_data = self.clean()
File "/path/to/lib/python2.5/site-packages/userprofile/forms.py" in clean
76. if int(self.cleaned_data.get('right')) - int
(self.cleaned_data.get('left')) < 96:
Exception Type: TypeError at /accounts/profile/edit/avatar/crop/
Exception Value: int() argument must be a string or a number,
not 'NoneType'
|