File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -86,19 +86,16 @@ export async function installCpythonFromRelease(release: tc.IToolRelease) {
86
86
core . info ( 'Execute installation script' ) ;
87
87
await installPython ( pythonExtractedFolder ) ;
88
88
} catch ( err ) {
89
- if ( err instanceof Error ) {
89
+ if ( err instanceof tc . HTTPError ) {
90
90
// Rate limit?
91
- if (
92
- err instanceof tc . HTTPError &&
93
- ( err . httpStatusCode === 403 || err . httpStatusCode === 429 )
94
- ) {
91
+ if ( err . httpStatusCode === 403 || err . httpStatusCode === 429 ) {
95
92
core . info (
96
93
`Received HTTP status code ${ err . httpStatusCode } . This usually indicates the rate limit has been exceeded`
97
94
) ;
98
95
} else {
99
96
core . info ( err . message ) ;
100
97
}
101
- if ( err . stack !== undefined ) {
98
+ if ( err . stack ) {
102
99
core . debug ( err . stack ) ;
103
100
}
104
101
}
You can’t perform that action at this time.
0 commit comments