Possibilit de supprimer le champ position
darcs-hash:20061128184649-c3cc4-5ad04f046a76a362ad4c1814ad432c6c97b8376e.gz
This commit is contained in:
parent
f877ee9b44
commit
3a0633dded
1 changed files with 4 additions and 1 deletions
|
@ -1190,6 +1190,9 @@ def set_wifi(machine):
|
||||||
try:
|
try:
|
||||||
#On n'enregistre pas une position vide
|
#On n'enregistre pas une position vide
|
||||||
if result[2].strip() and result[3].strip():
|
if result[2].strip() and result[3].strip():
|
||||||
|
if result[2].strip().lower() == "none" or result[3].strip().lower() == "none":
|
||||||
|
machine.position(None)
|
||||||
|
else:
|
||||||
machine.position((result[2].strip(),result[3].strip()))
|
machine.position((result[2].strip(),result[3].strip()))
|
||||||
except ValueError, c: err += c.args[0] + '\n'
|
except ValueError, c: err += c.args[0] + '\n'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue