Fix code for testing for answer

This commit is contained in:
Graham Pugh 2018-07-05 15:21:44 +02:00
parent ebd97d4d2b
commit 33ec252d47

View File

@ -390,7 +390,9 @@ def main():
answer = index+1 answer = index+1
print '# %s chosen.' % answer print '# %s chosen.' % answer
if not answer: try:
answer
except NameError:
answer = raw_input( answer = raw_input(
'\nChoose a product to download (1-%s): ' % len(product_info)) '\nChoose a product to download (1-%s): ' % len(product_info))
try: try: