IndexError, not KeyError

This commit is contained in:
Jay Lee
2016-10-31 12:20:04 -04:00
parent 786bbe5609
commit 925f4532bc

View File

@ -6755,7 +6755,7 @@ def getUserAttributes(i, cd, updateCmd=False):
def doCreateProject(): def doCreateProject():
try: try:
hint = sys.argv[3] hint = sys.argv[3]
except KeyError: except IndexError:
while True: while True:
hint = raw_input(u'What is your G Suite admin email address? ') hint = raw_input(u'What is your G Suite admin email address? ')
if hint.find(u'@') == -1: if hint.find(u'@') == -1: