def _AddPasswordFromUserInput(handler, msg, req):
  # If repo could not find auth info from netrc, try to get it from user input
  url = req.get_full_url()
  user, password = handler.passwd.find_user_password(None, url)
  if user is None:
    print(msg)
    try:
      user = input('User: ')
      password = getpass.getpass()
    except __HOLE__:
      return
    handler.passwd.add_password(None, url, user, password)
dataset/ETHPy150Open esrlabs/git-repo/main.py/_AddPasswordFromUserInput