Parcourir la source

added else block

Former-commit-id: 660ad7857e60fb66b3a2f9a2341057599fd0fa46
Gildas il y a 6 ans
Parent
commit
01cbc33254
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      cli/back-ends/puppeteer.js

+ 2 - 1
cli/back-ends/puppeteer.js

@@ -140,8 +140,9 @@ exports.getPageData = async options => {
 					jsRedirects++;
 					if (jsRedirects < MAX_JS_REDIRECTS) {
 						return exports.getPageData(options);
+					} else {
+						throw error;
 					}
-					throw error;
 				}
 			} else {
 				throw error;