Ignore:
Timestamp:
28 May 2021, 12:22:27 (3 years ago)
Author:
Henrik Bettermann
Message:

Catch error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r16266 r16495  
    220220    for job_id, exporter_name, user_id in job_entries:
    221221        job = job_manager.get(job_id)
    222         exporter = getUtility(ICSVExporter, name=exporter_name)
    223         exporter_title = getattr(exporter, 'title', 'Unknown')
     222        try:
     223            exporter = getUtility(ICSVExporter, name=exporter_name)
     224            exporter_title = getattr(exporter, 'title', 'Unknown')
     225        except:
     226            exporter_title = 'N/A'
    224227        if not job.kwargs.has_key('selected'):
    225228            args = ', '.join(['%s=%s' % (item[0], item[1])
Note: See TracChangeset for help on using the changeset viewer.