Skip to content

Commit

Permalink
Merge pull request #2 from RomainVialard/RomainVialard-patch-1
Browse files Browse the repository at this point in the history
Fix issue where response is undefined
  • Loading branch information
JeanRemiDelteil authored Apr 5, 2018
2 parents 6729ad9 + 7940fb3 commit 3a4c63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ErrorHandler.gs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function expBackoff(func) {


// Handle retries on UrlFetch calls with muteHttpExceptions
if (noError && typeof response.getResponseCode === "function") {
if (noError && response && typeof response.getResponseCode === "function") {
isUrlFetchResponse = true;

var responseCode = response.getResponseCode();
Expand Down

0 comments on commit 3a4c63d

Please sign in to comment.