diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 1fbef98..c144330 100644
a
|
b
|
class CheckboxInput(Widget):
|
499 | 499 | |
500 | 500 | def render(self, name, value, attrs=None): |
501 | 501 | final_attrs = self.build_attrs(attrs, type='checkbox', name=name) |
502 | | try: |
503 | | result = self.check_test(value) |
504 | | except: # Silently catch exceptions |
505 | | result = False |
| 502 | result = self.check_test(value) |
506 | 503 | if result: |
507 | 504 | final_attrs['checked'] = 'checked' |
508 | 505 | if not (value is True or value is False or value is None or value == ''): |