fixed warning
This commit is contained in:
parent
1dd3ce459d
commit
177499476b
1 changed files with 2 additions and 7 deletions
|
@ -273,13 +273,8 @@ class ActionBase:
|
||||||
else:
|
else:
|
||||||
return data2.split()[0]
|
return data2.split()[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
# FIXME: this should probably not print to sys.stderr, but should instead
|
self._display.warning("Calculating checksum failed unusually, please report this to " + \
|
||||||
# fail in a more normal way?
|
"the list so it can be fixed\ncommand: %s\n----\noutput: %s\n----\n") % (cmd, data)
|
||||||
sys.stderr.write("warning: Calculating checksum failed unusually, please report this to the list so it can be fixed\n")
|
|
||||||
sys.stderr.write("command: %s\n" % cmd)
|
|
||||||
sys.stderr.write("----\n")
|
|
||||||
sys.stderr.write("output: %s\n" % data)
|
|
||||||
sys.stderr.write("----\n")
|
|
||||||
# this will signal that it changed and allow things to keep going
|
# this will signal that it changed and allow things to keep going
|
||||||
return "INVALIDCHECKSUM"
|
return "INVALIDCHECKSUM"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue