Changeset 369

Show
Ignore:
Timestamp:
05/21/08 21:05:01 (6 months ago)
Author:
johnbywater
Message:

Fixed exception type, so Django templates carry on trying to run things.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dm/db.py

    r366 r369  
    11491149                    className = self.getDomainClassName() 
    11501150                    msg = "Couldn't cast %s id to int: '%s'" % (className, value) 
    1151                     raise Exception, msg 
     1151                    raise KeyError, msg  # Django templates to carry on. 
    11521152            # todo: expand for all database systems 
    11531153            sqlSafeValue = sqlrepr(value, 'postgres')