We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ca149 commit c8dbae6Copy full SHA for c8dbae6
1 file changed
_visualize/scripts/gather_repo_metadata.py
@@ -29,10 +29,16 @@
29
30
# gather any repo topics
31
if repoObj["repositoryTopics"]["totalCount"] > 0:
32
- topicRepo = topicsCollector.data["data"][repo]
33
topics = []
34
- for topicObj in topicRepo["repositoryTopics"]["nodes"]:
35
- topics.append(topicObj["topic"]["name"])
+ try:
+ topicRepo = topicsCollector.data["data"][repo]
+ for topicObj in topicRepo["repositoryTopics"]["nodes"]:
36
+ topics.append(topicObj["topic"]["name"])
37
+ except KeyError:
38
+ print(
39
+ "Warning: Repo '%s' not found in '%s'"
40
+ % (repo, topicsDatafile.split("/")[-1])
41
+ )
42
repoData["topics"] = topics
43
else:
44
repoData["topics"] = None
0 commit comments