Commit dc9c52d7 by Chris Rossi Committed by Diana Huang

Pep8, pylint.

parent 2f9e9e24
......@@ -30,7 +30,7 @@ class Command(BaseCommand):
raise CommandError("LINKEDIN_API is not configured")
state = str(uuid.uuid4())
url= ("https://www.linkedin.com/uas/oauth2/authorization"
url = ("https://www.linkedin.com/uas/oauth2/authorization"
"?response_type=code"
"&client_id=%s&state=%s&redirect_uri=%s" % (
api['CLIENT_ID'], state, api['REDIRECT_URI']))
......@@ -54,10 +54,10 @@ class Command(BaseCommand):
try:
response = urllib2.urlopen(url).read()
except urllib2.HTTPError, e:
except urllib2.HTTPError, error:
print "!!ERROR!!"
print e
print e.read()
print error
print error.read()
raise CommandError("Unable to retrieve access token")
access_token = json.loads(response)['access_token']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment