Skip to content

Commit

Permalink
Fix unknown collection error name (see django-haystack#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
acdha committed Oct 26, 2017
1 parent 356a5ec commit ac421dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysolr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ def getHosts(self, collname, only_leader=False, seen_aliases=None):

hosts = []
if collname not in self.collections:
raise SolrError("Unknown collection: %s", collname)
raise SolrError("Unknown collection: %s" % collname)
collection = self.collections[collname]
shards = collection[ZooKeeper.SHARDS]
for shardname in shards.keys():
Expand Down

0 comments on commit ac421dc

Please sign in to comment.