mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 01:57:46 +00:00
covid-en fix a bug
This commit is contained in:
parent
79e8b4f668
commit
81314b5490
@ -16,7 +16,10 @@ async def covid_en(context):
|
||||
except ValueError:
|
||||
country = "World"
|
||||
covid_ = Covid(source="worldometers")
|
||||
country_data = covid_.get_status_by_country_name(country)
|
||||
try:
|
||||
country_data = covid_.get_status_by_country_name(country)
|
||||
except ValueError:
|
||||
return await context.edit("[covid-en] 国家名称不正确 **[Worldometer]**(https://www.worldometers.info/coronavirus)")
|
||||
if country_data:
|
||||
if country == "World":
|
||||
country_data['total_tests'] = "未知"
|
||||
|
Loading…
Reference in New Issue
Block a user