Commit ecff2465 authored by Paul Tolstoi's avatar Paul Tolstoi
Browse files

minor fixes

parent e43133ce
......@@ -144,9 +144,15 @@ def getRouterData(imageNr):
'wifiPwd': data[0][2],
'rootPwd': data[0][3]
}
elif len(data) == 0:
print('image data for "' + imageNr + '" not found!')
return None
else:
print('imageNr not unique!')
return None
elif len(result) == 0:
print('.csv with image data not found!')
return None
print('.csv file not unique!')
return None
......@@ -173,7 +179,11 @@ def main():
return
while True:
image = input('Image number? ')
image = 'exit'
try:
image = input('Image number? ')
except EOFError:
return
if image == 'exit':
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment