fix: get_pricing_display 异常保护,返回None
This commit is contained in:
parent
c875a8dc2b
commit
c5eb5b9399
@ -793,7 +793,10 @@ async def get_pricing_display(ppid):
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
r = await PricingProgram.get_ppid_pricing(ppid)
|
r = await PricingProgram.get_ppid_pricing(ppid)
|
||||||
|
except Exception:
|
||||||
|
return None
|
||||||
pricing_data_str = r.pricing_data
|
pricing_data_str = r.pricing_data
|
||||||
d = yaml.safe_load(pricing_data_str)
|
d = yaml.safe_load(pricing_data_str)
|
||||||
if not d:
|
if not d:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user