Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Merge pull request #301 from daniloakamine/fix-variable-scope
Browse files Browse the repository at this point in the history
Fix UnboundLocalError
  • Loading branch information
dhermes committed Sep 7, 2015
2 parents a9f54d0 + 80df97b commit b3febf5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions oauth2client/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ def run_flow(flow, storage, flags, http=None):
success = True
break
flags.noauth_local_webserver = not success
if not success:
print('Failed to start a local webserver listening '
'on either port 8080')
print('or port 8090. Please check your firewall settings and locally')
print('running programs that may be blocking or using those ports.')
print()
print('Falling back to --noauth_local_webserver and continuing with')
print('authorization.')
print()
if not success:
print('Failed to start a local webserver listening '
'on either port 8080')
print('or port 8090. Please check your firewall settings and locally')
print('running programs that may be blocking or using those ports.')
print()
print('Falling back to --noauth_local_webserver and continuing with')
print('authorization.')
print()

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

0 comments on commit b3febf5

Please sign in to comment.