|
@@ -108,6 +108,7 @@ async def create_contact(
|
|
|
except Exception as e:
|
|
|
# 处理异常
|
|
|
db.rollback()
|
|
|
+ traceback.print_exc()
|
|
|
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
@@ -189,6 +190,7 @@ async def update_contact(
|
|
|
except Exception as e:
|
|
|
# 处理异常
|
|
|
db.rollback()
|
|
|
+ traceback.print_exc()
|
|
|
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
@@ -261,6 +263,7 @@ async def get_emergency_contact_list(
|
|
|
|
|
|
except Exception as e:
|
|
|
# 处理异常
|
|
|
+ traceback.print_exc()
|
|
|
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
@@ -318,7 +321,7 @@ async def get_emergency_contact_id_info(
|
|
|
other_type_info = get_other_type_info_by_id(db,type_other_info.other_type_id)
|
|
|
type_data['other_type_name'] = other_type_info.type_name
|
|
|
type_data['other_type_id']=type_other_info.other_type_id
|
|
|
- type_data['denger_point_name']=type_other_info.denger_point_name
|
|
|
+ type_data['1']=type_other_info.denger_point_name
|
|
|
type_data['other_type_2_name']=type_other_info.other_type_2_name
|
|
|
|
|
|
contact_result['type_list'].append(type_data)
|
|
@@ -330,6 +333,7 @@ async def get_emergency_contact_id_info(
|
|
|
}
|
|
|
except Exception as e:
|
|
|
# 处理异常
|
|
|
+ traceback.print_exc()
|
|
|
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
@@ -367,6 +371,7 @@ async def delete_emergency_plans(
|
|
|
}
|
|
|
except Exception as e:
|
|
|
# 处理异常
|
|
|
+ traceback.print_exc()
|
|
|
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
@@ -397,6 +402,7 @@ async def delete_emergency_plans(
|
|
|
}
|
|
|
except Exception as e:
|
|
|
# 处理异常
|
|
|
+ traceback.print_exc()
|
|
|
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
#
|