diff --git a/自动化.py b/自动化.py index 8b2be2e..fe224a1 100644 --- a/自动化.py +++ b/自动化.py @@ -83,9 +83,12 @@ def main(): print(i["body"]) body = i.get("body") or {} - age = body["resume"]["age"] # 年龄 - education = body["resume"]["education"] # 大专 - position = body["resume"]["position"] # 期望职位 + try: + age = body["resume"]["age"] # 年龄 + education = body["resume"]["education"] # 大专 + position = body["resume"]["position"] # 期望职位 + except: + pass text = body.get("text") if body else None if text and "手机号" in text: