Skip to content

Commit

Permalink
Fix handling of timeout errors (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshouman committed May 2, 2022
1 parent decc030 commit 6f1bf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const request = async (name, options) => {

return false;
} catch (error) {
const {statusCode} = error.response;
const {statusCode} = error.response || {};

if (statusCode === 404) {
if (!isOrganization) {
Expand Down

0 comments on commit 6f1bf03

Please sign in to comment.