Skip to content

Commit 08913b6

Browse files
committed
fix error with description
1 parent 3a39b3b commit 08913b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crawler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
repo_set.add(repo.repository.full_name)
4747
print("{0}".format(repo.repository))
4848

49-
innersource_repo = repo.as_dict()
49+
innersource_repo: dict = repo.as_dict()
5050
innersource_repo["_InnerSourceMetadata"] = {}
5151

5252
# fetch innersource.json
@@ -79,6 +79,9 @@
7979
# fetch repository topics
8080
repo_topics = repo.repository.topics()
8181
innersource_repo["_InnerSourceMetadata"]["topics"] = repo_topics.names
82+
83+
# set description = '' if no exist
84+
innersource_repo.set_default('description', '')
8285

8386
# calculate score
8487
innersource_repo["score"] = repo_activity.score.calculate(

0 commit comments

Comments
 (0)