Ignore:
Timestamp:
15 Feb 2017, 06:19:52 (8 years ago)
Author:
Henrik Bettermann
Message:

Catch traceback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r14424 r14552  
    3535from zope.interface import Interface, implementer
    3636from zope.schema import getFields
    37 from zope.schema.interfaces import ConstraintNotSatisfied
     37from zope.schema.interfaces import ConstraintNotSatisfied, RequiredMissing
    3838from zope.event import notify
    3939from waeup.kofa.async import AsyncJob
     
    471471                        failed_writer, string_row,
    472472                        "ConstraintNotSatisfied: %s" % err)
     473                except RequiredMissing, err:
     474                    num_warns += 1
     475                    self.writeFailedRow(
     476                        failed_writer, string_row,
     477                        "RequiredMissing: %s" % err)
    473478                    continue
    474479            finished_writer.writerow(string_row)
Note: See TracChangeset for help on using the changeset viewer.