Merge branch 'feature/main' into feature/mssql
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -163,7 +163,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -163,7 +163,7 @@ class Command(BaseCommand, LoggerMixin): |
163 | start_time = time.time() | 163 | start_time = time.time() |
164 | ocr_response = requests.post(self.ocr_url, json=json_data) | 164 | ocr_response = requests.post(self.ocr_url, json=json_data) |
165 | if ocr_response.status_code != 200: | 165 | if ocr_response.status_code != 200: |
166 | raise OCR1Exception('{0} ocr status code: {0}'.format(self.log_base, ocr_response.status_code)) | 166 | raise OCR1Exception('{0} ocr status code: {1}'.format(self.log_base, ocr_response.status_code)) |
167 | except Exception as e: | 167 | except Exception as e: |
168 | self.folder_log.warn('{0} [ocr failed] [times={1}] [img_path={2}] [error={3}]'.format( | 168 | self.folder_log.warn('{0} [ocr failed] [times={1}] [img_path={2}] [error={3}]'.format( |
169 | self.log_base, times, img_path, traceback.format_exc())) | 169 | self.log_base, times, img_path, traceback.format_exc())) | ... | ... |
-
Please register or sign in to post a comment