Skip to content

Commit b3febf5

Browse files
committed
Merge pull request googleapis#301 from daniloakamine/fix-variable-scope
Fix UnboundLocalError
2 parents a9f54d0 + 80df97b commit b3febf5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

oauth2client/tools.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ def run_flow(flow, storage, flags, http=None):
177177
success = True
178178
break
179179
flags.noauth_local_webserver = not success
180-
if not success:
181-
print('Failed to start a local webserver listening '
182-
'on either port 8080')
183-
print('or port 8090. Please check your firewall settings and locally')
184-
print('running programs that may be blocking or using those ports.')
185-
print()
186-
print('Falling back to --noauth_local_webserver and continuing with')
187-
print('authorization.')
188-
print()
180+
if not success:
181+
print('Failed to start a local webserver listening '
182+
'on either port 8080')
183+
print('or port 8090. Please check your firewall settings and locally')
184+
print('running programs that may be blocking or using those ports.')
185+
print()
186+
print('Falling back to --noauth_local_webserver and continuing with')
187+
print('authorization.')
188+
print()
189189

190190
if not flags.noauth_local_webserver:
191191
oauth_callback = 'http://%s:%s/' % (flags.auth_host_name, port_number)

0 commit comments

Comments
 (0)