From a84f3385c95ad80a3a1cd26ec2fb63b499cb738f Mon Sep 17 00:00:00 2001 From: Michael Butler Date: Sun, 25 Oct 2020 23:37:05 -0400 Subject: [PATCH] Use a static port number Choosing 12997 due to google searches not turning up anything registered for that port. --- sheets/quickstart/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheets/quickstart/quickstart.py b/sheets/quickstart/quickstart.py index c782e563..4b8da578 100644 --- a/sheets/quickstart/quickstart.py +++ b/sheets/quickstart/quickstart.py @@ -45,7 +45,7 @@ def main(): else: flow = InstalledAppFlow.from_client_secrets_file( 'credentials.json', SCOPES) - creds = flow.run_local_server(port=0) + creds = flow.run_local_server(port=12997) # Save the credentials for the next run with open('token.pickle', 'wb') as token: pickle.dump(creds, token)