Browse Source

Fix variable name spelling.

pull/8/merge
Ben Kurtovic 11 years ago
parent
commit
2d9b604ebe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      commands/weather.py

+ 1
- 1
commands/weather.py View File

@@ -63,7 +63,7 @@ class Weather(Command):
if "error" in res["response"]: if "error" in res["response"]:
try: try:
desc = res["response"]["error"]["description"] desc = res["response"]["error"]["description"]
desc = desc[0].upper() + des[1:]
desc = desc[0].upper() + desc[1:]
if desc[-1] not in (".", "!", "?"): if desc[-1] not in (".", "!", "?"):
desc += "." desc += "."
except (KeyError, IndexError): except (KeyError, IndexError):


Loading…
Cancel
Save