Browse Source

Minor fix if sql's values are not strings.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
53c852e08b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/sitesdb.py

+ 1
- 1
earwigbot/wiki/sitesdb.py View File

@@ -206,7 +206,7 @@ class SitesDB(object):
if not sql: if not sql:
sql = config.wiki.get("sql", {}) sql = config.wiki.get("sql", {})
for key, value in sql.iteritems(): for key, value in sql.iteritems():
if "$1" in value:
if isinstance(value, basestring) and "$1" in value:
sql[key] = value.replace("$1", name) sql[key] = value.replace("$1", name)


return Site(name=name, project=project, lang=lang, base_url=base_url, return Site(name=name, project=project, lang=lang, base_url=base_url,


Loading…
Cancel
Save