Ignore:
Timestamp:
1 Mar 2016, 05:56:02 (9 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback if certificate has been removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py

    r13751 r13754  
    7272        """Compose the titles in `AppCatCertificateSource`.
    7373        """
    74         return "%s / %s / %s (%s)" % (
     74        try: title = "%s / %s / %s (%s)" % (
    7575            value.__parent__.__parent__.__parent__.code,
    7676            value.__parent__.__parent__.code,
    77             value.code, value.title)
     77            value.title, value.code)
     78        except AttributeError:
     79            title = "NA / %s (%s)" % (value.title, value.code)
     80        return title
Note: See TracChangeset for help on using the changeset viewer.