Browse Source

Ignore sites without a name.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
725fea40e3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      earwigbot/commands/langcode.py

+ 2
- 0
earwigbot/commands/langcode.py View File

@@ -40,6 +40,8 @@ class Langcode(Command):
del matrix["specials"]

for site in matrix.itervalues():
if not site["name"]:
continue
name = site["name"].encode("utf8")
localname = site["localname"].encode("utf8")
if site["code"] == lcase:


Loading…
Cancel
Save