Skip to content

Commit 6c98103

Browse files
committed
fixup! Introduction of the fc2.com SPECIAL rule.
This patch fixes #271. This patch touches #269. Contributors: * @spirillen * @T145
1 parent 45d85f0 commit 6c98103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PyFunceble/checker/availability/extra_rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def __handle_fc2_dot_com(self) -> "ExtraRulesHandler":
310310

311311
req = PyFunceble.factory.Requester.get(url, allow_redirects=False)
312312

313-
if "error.fc2.com" in req.headers["Location"]:
313+
if "Location" in req.headers and "error.fc2.com" in req.headers["Location"]:
314314
self.__switch_to_down()
315315

316316
return self

0 commit comments

Comments
 (0)