diff --git a/lib/routing.py b/lib/routing.py index 5684c34..65b1745 100644 --- a/lib/routing.py +++ b/lib/routing.py @@ -131,7 +131,7 @@ class Router(object): topic_list = [x[len(topic):] for x in self.get_topics_list() if x.startswith(topic + "/")] - if ":list" in topic_list: topic_list.remove(":list") + if "/:list" in topic_list: topic_list.remove("/:list") random_topic = topic + random.choice(topic_list) return random_topic