Changeset 8509


Ignore:
Timestamp:
24 May 2012, 15:22:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Emergency fix. Completely untested.

File:
1 edited

Legend:

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

    r8380 r8509  
    3434from waeup.kofa.interfaces import (
    3535    IBatchProcessor, FatalCSVError, IObjectConverter,
    36     ICSVExporter, IGNORE_MARKER)
     36    ICSVExporter, IGNORE_MARKER, DuplicationError)
    3737
    3838class BatchProcessor(grok.GlobalUtility):
     
    347347                        failed_writer, string_row,
    348348                        "%s Skipping." % error.message)
     349                except DuplicationError, error:
     350                    num_warns += 1
     351                    self.writeFailedRow(
     352                        failed_writer, string_row,
     353                        "%s Skipping." % error.msg)
    349354                    continue
    350355            elif mode == 'remove':
Note: See TracChangeset for help on using the changeset viewer.