def GetUserAuthCode():
"""Prompts the user for a two factor auth code."""
try:
code = None
if code is None:
code = rawInput("Two-Factor Authentication Code: ")
except (KeyboardInterrupt, SystemExit), e:
if e.message:
tools.exit(e.message)
else:
tools.exit
return code
评论列表
文章目录