mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-18 18:26:31 +00:00
Fix code for testing for answer
This commit is contained in:
parent
ebd97d4d2b
commit
33ec252d47
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user