Changeset 219

Show
Ignore:
Timestamp:
10/11/07 11:55:14 (6 years ago)
Author:
ged
Message:

Fail explicitely if something go wrong when mapping a class. This should never
happen, but you never know...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/entity.py

    r216 r219  
    6767 
    6868        return mapper(cls, extension=extension, *args, **kwargs) 
     69    else: 
     70        raise Exception("Failed to map entity '%s' with its table or " 
     71                        "selectable" % cls.__name__) 
     72 
    6973 
    7074class EntityDescriptor(object):