Skip to content

Commit ac421dc

Browse files
committed
Fix unknown collection error name (see #224)
1 parent 356a5ec commit ac421dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysolr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def getHosts(self, collname, only_leader=False, seen_aliases=None):
13011301

13021302
hosts = []
13031303
if collname not in self.collections:
1304-
raise SolrError("Unknown collection: %s", collname)
1304+
raise SolrError("Unknown collection: %s" % collname)
13051305
collection = self.collections[collname]
13061306
shards = collection[ZooKeeper.SHARDS]
13071307
for shardname in shards.keys():

0 commit comments

Comments
 (0)