fix crash on no Location header when checking connection
parent
5efee60800
commit
868cf77b89
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue