Skip to content
Snippets Groups Projects
Unverified Commit d85faf17 authored by Ameen Izhac's avatar Ameen Izhac Committed by GitHub
Browse files

Use int type for redirect URI port (#18097)

parent 38702196
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ class GoogleDocsReader(BasePydanticReader): ...@@ -119,7 +119,7 @@ class GoogleDocsReader(BasePydanticReader):
client_config = json.load(json_file) client_config = json.load(json_file)
redirect_uris = client_config["web"].get("redirect_uris", []) redirect_uris = client_config["web"].get("redirect_uris", [])
if len(redirect_uris) > 0: if len(redirect_uris) > 0:
port = redirect_uris[0].strip("/").split(":")[-1] port = int(redirect_uris[0].strip("/").split(":")[-1])
creds = flow.run_local_server(port=port) creds = flow.run_local_server(port=port)
# Save the credentials for the next run # Save the credentials for the next run
......
...@@ -47,7 +47,7 @@ maintainers = [ ...@@ -47,7 +47,7 @@ maintainers = [
] ]
name = "llama-index-readers-google" name = "llama-index-readers-google"
readme = "README.md" readme = "README.md"
version = "0.6.0" version = "0.6.1"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.10,<4.0" python = ">=3.10,<4.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment