Skip to content

Commit ad5a8b0

Browse files
Print exception on login request
1 parent 2b2f351 commit ad5a8b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

login.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import config
33
import json
44
import re
5+
import requests
56
from collections import OrderedDict
67
try:
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

4344
def 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

0 commit comments

Comments
 (0)