From 80df97b8d0f9721f95a8c9f7000b7bcaa33bb9d5 Mon Sep 17 00:00:00 2001 From: Danilo Akamine Date: Mon, 7 Sep 2015 14:46:08 -0300 Subject: [PATCH] Fix variable 'success' that is referenced before assignment --- oauth2client/tools.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/oauth2client/tools.py b/oauth2client/tools.py index 2187e0e..629866b 100644 --- a/oauth2client/tools.py +++ b/oauth2client/tools.py @@ -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)