29aedd0a by 冯轩

MOD:bug

1 parent 98fb6f96
......@@ -1870,7 +1870,7 @@ class EmployeeView(GenericView):
bss_ocr = json.loads(bss_ocr_str)
self.running_log.info('[query Employee] [application_id={0}] [bss_ocr={1}]'.format(application_id, bss_ocr))
for one_bss in bss_ocr:
income_keywords = one_bss['income_keywords']
income_keywords = one_bss.get('income_keywords')
self.running_log.info('[query Employee] [application_id={0}] [income_keywords={1}]'.format(application_id, income_keywords))
if income_keywords is not None and len(income_keywords) > 0:
return response.ok(data=True)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!