try:
    VERSION = __import__('pkg_resources') \
        .get_distribution('django-shortuuidfield').version
except Exception, e:
    VERSION = 'unknown'
    
from fields import ShortUUIDField
try:
    VERSION = __import__('pkg_resources') \
        .get_distribution('django-shortuuidfield').version
except Exception:
    VERSION = 'unknown'

from fields import ShortUUIDField

Remove old-style assignment of raised exception