Skip to content

Commit bc9b1f6

Browse files
authored
Merge pull request #51 from issamansur/fix-error-with-description
fix error with description
2 parents 3a39b3b + a691745 commit bc9b1f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crawler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080
repo_topics = repo.repository.topics()
8181
innersource_repo["_InnerSourceMetadata"]["topics"] = repo_topics.names
8282

83+
# set description = '' if no exist
84+
if innersource_repo['description'] is None:
85+
innersource_repo['description'] = ''
86+
8387
# calculate score
8488
innersource_repo["score"] = repo_activity.score.calculate(
8589
innersource_repo

0 commit comments

Comments
 (0)