diff --git a/librefi/librefi.py b/librefi/librefi.py index 5221166..94cf914 100644 --- a/librefi/librefi.py +++ b/librefi/librefi.py @@ -54,7 +54,7 @@ class LibreFi: self.log.info("No internet access, trying {}.unfxck()" .format(self.current_fxcker.FXCKER_KEY)) self.current_fxcker.unfxck( - location=check_req.headers["location"], + location=check_req.headers.get("Location"), ) else: self.log.debug("Internet access working")