From 53c852e08b58b98048f19f34b5be491a5ca886b8 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 10 Jul 2012 15:47:29 -0400 Subject: [PATCH] Minor fix if sql's values are not strings. --- earwigbot/wiki/sitesdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/sitesdb.py b/earwigbot/wiki/sitesdb.py index 7852e70..927ebef 100644 --- a/earwigbot/wiki/sitesdb.py +++ b/earwigbot/wiki/sitesdb.py @@ -206,7 +206,7 @@ class SitesDB(object): if not sql: sql = config.wiki.get("sql", {}) for key, value in sql.iteritems(): - if "$1" in value: + if isinstance(value, basestring) and "$1" in value: sql[key] = value.replace("$1", name) return Site(name=name, project=project, lang=lang, base_url=base_url,