We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9185d commit f4cd21eCopy full SHA for f4cd21e
lib/routing.py
@@ -119,6 +119,9 @@ def __select_random_topic(prefix,topic_list):
119
#Here we remove the special cases
120
if ":list" in topic_list: topic_list.remove(":list")
121
if "rosetta/" in topic_list: topic_list.remove("rosetta/")
122
+ #Here we still check that topic_list in not empty
123
+ if not topic_list:
124
+ return prefix
125
random_topic = random.choice(topic_list)
126
return prefix + random_topic
127
0 commit comments