Sefat33 commited on
Commit
c6069de
·
verified ·
1 Parent(s): 8169c9b

Update country_info.py

Browse files
Files changed (1) hide show
  1. country_info.py +1 -2
country_info.py CHANGED
@@ -14,9 +14,8 @@ def get_country_info(name):
14
  "population": data.get("population", "N/A"),
15
  "currency": list(data.get("currencies", {}).keys())[0],
16
  "language": ', '.join(data.get("languages", {}).values()),
17
- "flag": data.get("flags", {}).get("png", ""),
18
  "region": data.get("region", "N/A")
19
  }
20
 
21
  except Exception as e:
22
- return {"error": f"Unable to fetch info for '{name}': {e}"}
 
14
  "population": data.get("population", "N/A"),
15
  "currency": list(data.get("currencies", {}).keys())[0],
16
  "language": ', '.join(data.get("languages", {}).values()),
 
17
  "region": data.get("region", "N/A")
18
  }
19
 
20
  except Exception as e:
21
+ return {"error": f"Unable to fetch info for '{name}': {e}"}