@preloaderPause
def GetUserAuthCode():
 try:
  code = None
  if (code is None):
   code = rawInput('Two-Factor Authentication Code: ')
 except (KeyboardInterrupt, SystemExit) as e:
  if e.message:
   tools.exit(e.message)
  else:
   tools.exit
 return code

@ preloaderPause def GetUserAuthCode ( ) : try : code = None if ( code is None ) : code = rawInput ( 'Two-Factor Authentication Code: ' ) except ( KeyboardInterrupt , SystemExit ) as e : if e . message : tools . exit ( e . message ) else : tools . exit return code
prompts the user for a two factor auth code .