added in some error catching when using domain without an explicit port
parent
b41849b9fc
commit
b7c361114c
|
@ -1 +1 @@
|
||||||
__version__ = "0.0.24"
|
__version__ = "0.0.25"
|
|
@ -88,7 +88,11 @@ class EagleEyev3():
|
||||||
# Combine server_protocol, server_host, and server_port to make the redirect_uri
|
# Combine server_protocol, server_host, and server_port to make the redirect_uri
|
||||||
# Note: Please see the note in settings.py about trailing slashes and modify this line if needed
|
# Note: Please see the note in settings.py about trailing slashes and modify this line if needed
|
||||||
|
|
||||||
self.redirect_uri = f"{self.server_protocol}://{self.server_host}:{self.server_port}/{self.server_path}"
|
if self.server_port == "" or self.server_port == None:
|
||||||
|
# if a port isn't specificed than don't prepend it with a colon
|
||||||
|
self.redirect_uri = f"{self.server_protocol}://{self.server_host}/{self.server_path}"
|
||||||
|
else:
|
||||||
|
self.redirect_uri = f"{self.server_protocol}://{self.server_host}:{self.server_port}/{self.server_path}"
|
||||||
|
|
||||||
def _save_access_token(self):
|
def _save_access_token(self):
|
||||||
with open(".lazy_login", "w") as json_file:
|
with open(".lazy_login", "w") as json_file:
|
||||||
|
|
Loading…
Reference in New Issue