File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22import config
33import json
44import re
5+ import requests
56from collections import OrderedDict
67try :
78 from gpsoauth import perform_master_login , perform_oauth
@@ -36,8 +37,8 @@ def login_pokemon(user,passw):
3637 access_token = re .sub ('.*en=' ,'' ,r2 .content )
3738 access_token = re .sub ('.com.*' ,'.com' ,access_token )
3839 return access_token
39- except :
40- print '[-] pokemon attacking the login server'
40+ except requests . exceptions . RequestException as exception :
41+ print '[-] pokemon attacking the login server ' + str ( exception )
4142 return None
4243
4344def login_google_v2 (email ,passw ):
@@ -139,4 +140,4 @@ def login_google(email,passw):
139140 return json .loads (r5 .content )
140141 except :
141142 print '[-] problem in google login..'
142- return None
143+ return None
You can’t perform that action at this time.
0 commit comments