File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,13 @@ function *getNpmInfo(pkg) {
40
40
}
41
41
42
42
function * getTravis ( repo ) {
43
- return YAML . safeLoad ( yield get ( 'https://raw.githubusercontent.com/'
44
- + repo + '/master/.travis.yml' ) )
43
+ var result = yield get ( 'https://raw.githubusercontent.com/'
44
+ + repo + '/master/.travis.yml' )
45
+ try {
46
+ return YAML . safeLoad ( result )
47
+ } catch ( _ ) {
48
+ return { }
49
+ }
45
50
}
46
51
47
52
function * getUserInfo ( user ) {
@@ -89,7 +94,9 @@ function *getInfoFromGithub() {
89
94
var project = projectsDB [ i ]
90
95
var travis = yield getTravis ( project . repo )
91
96
var projectData = data . projects [ project . name ]
92
- projectData . node = travis . node_js . sort ( versionSort ) [ 0 ]
97
+ if ( travis . node_js ) {
98
+ projectData . node = travis . node_js . sort ( versionSort ) [ 0 ]
99
+ }
93
100
}
94
101
}
95
102
You can’t perform that action at this time.
0 commit comments