try:
    from json_field.fields import JSONField
except ImportError:
    pass # fails when imported by setup.py, no worries

__version__ = '0.4.2'

from django.core.exceptions import ImproperlyConfigured
try:
    from json_field.fields import JSONField
except (ImportError, ImproperlyConfigured):
    pass # fails when imported by setup.py, no worries

__version__ = '0.4.2'

Fix install with Django 1.5.
Fix install with Django 1.5.

+ from django.core.exceptions import ImproperlyConfigured
  try:
      from json_field.fields import JSONField
- except ImportError:
+ except (ImportError, ImproperlyConfigured):
      pass # fails when imported by setup.py, no worries
  
  __version__ = '0.4.2'
  
Fix install with Django 1.5.
## Code Before:
try:
    from json_field.fields import JSONField
except ImportError:
    pass # fails when imported by setup.py, no worries

__version__ = '0.4.2'

## Instruction:
Fix install with Django 1.5.
## Code After:
from django.core.exceptions import ImproperlyConfigured
try:
    from json_field.fields import JSONField
except (ImportError, ImproperlyConfigured):
    pass # fails when imported by setup.py, no worries

__version__ = '0.4.2'
