kangasbros/django-bitcoin — pull request #20 by alfetopito (2013-06-28 14:09:55+00:00)
Title: Fix BCAddressField where field is required but there is no value

If the field matches above conditions, validation will raise an AttributeError:

...
File ".../python2.7/site-packages/django/forms/forms.py", line 287, in _clean_fields
value = field.clean(value)
File ".../python2.7/site-packages/django_bitcoin/BCAddressField.py", line 21, in clean
value = value.strip()
AttributeError: 'NoneType' object has no attribute 'strip'