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
Remove old-style assignment of raised exception

I've removed the old-style assignment of the ``Exception`` because
it is no longer supported in Python 3.x. Since it is not used, I've
removed it completely.
