Skip to content

Commit 45c803a

Browse files
committed
Further removing of special cases
1 parent 73e4e46 commit 45c803a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/routing.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ def handle_if_random_request(self, topic):
117117

118118
def __select_random_topic(prefix, topic_list):
119119
#Here we remove the special cases
120-
if "rosetta/" in topic_list:
121-
topic_list.remove("rosetta/")
122-
123-
cleaned_topic_list = [ x for x in topic_list if ':' not in x]
120+
cleaned_topic_list = [ x for x in topic_list if '/' not in x and ':' not in x]
124121

125122
#Here we still check that cleaned_topic_list in not empty
126123
if not cleaned_topic_list:

0 commit comments

Comments
 (0)