Advertisement
Guest User

Untitled

a guest
Jun 12th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. validated = False
  2. while not validated:
  3.     try:
  4.         user = raw_input('Enter Email:')
  5.         password = raw_input('Enter Password:')
  6.  
  7.         api.login(user, password, Mobileclient.FROM_MAC_ADDRESS)
  8.  
  9.         validated = true
  10.  
  11.     except NotLoggedIn:
  12.         print("Login failed. Please try again")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement