@@ 1125-1134 (lines=10) @@ | ||
1122 | self._base_logger.warning( |
|
1123 | f"added file {file_.ID} for page {file_.pageId} in input file group {ifg} " |
|
1124 | f"conflicts with file {ift[i].ID} but no PAGE available - on_error={on_error}") |
|
1125 | if on_error == 'skip': |
|
1126 | ift[i] = None |
|
1127 | elif on_error == 'first': |
|
1128 | pass # keep first match |
|
1129 | elif on_error == 'last': |
|
1130 | ift[i] = file_ |
|
1131 | elif on_error == 'abort': |
|
1132 | raise NonUniqueInputFile(ifg, file_.pageId, None) |
|
1133 | else: |
|
1134 | raise Exception("Unknown 'on_error' strategy '%s'" % on_error) |
|
1135 | else: |
|
1136 | self._base_logger.debug(f"adding file {file_.ID} for page {file_.pageId} to input file group {ifg}") |
|
1137 | ift[i] = file_ |
|
@@ 1104-1113 (lines=10) @@ | ||
1101 | self._base_logger.warning( |
|
1102 | f"added file {file_.ID} for page {file_.pageId} in input file group {ifg} " |
|
1103 | f"conflicts with file {ift[i].ID} of same MIME type {mimetype} - on_error={on_error}") |
|
1104 | if on_error == 'skip': |
|
1105 | ift[i] = None |
|
1106 | elif on_error == 'first': |
|
1107 | pass # keep first match |
|
1108 | elif on_error == 'last': |
|
1109 | ift[i] = file_ |
|
1110 | elif on_error == 'abort': |
|
1111 | raise NonUniqueInputFile(ifg, file_.pageId, mimetype) |
|
1112 | else: |
|
1113 | raise Exception("Unknown 'on_error' strategy '%s'" % on_error) |
|
1114 | elif (ift[i].mimetype == MIMETYPE_PAGE and |
|
1115 | file_.mimetype != MIMETYPE_PAGE): |
|
1116 | pass # keep PAGE match |