- Timestamp:
- 29 May 2011, 23:15:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.py
r6224 r6227 6 6 from zope.component import queryUtility 7 7 from zope.interface import implementedBy 8 from waeup.sirp.interfaces import DuplicationError 8 9 from waeup.sirp.university.interfaces import ( 9 10 ICertificateContainer, ICertificate) … … 27 28 code=(certificate.code,certificate.code)) 28 29 if len(entries) > 0: 29 raise ValueError('Certificate exists already elsewhere') 30 raise DuplicationError( 31 'Certificate exists already elsewhere', entries) 30 32 else: 31 33 # No catalog, then this addition won't do harm to anything.
Note: See TracChangeset for help on using the changeset viewer.