[modules] Fix two minor Travis complaints
This commit is contained in:
parent
744982cb87
commit
01883c1284
2 changed files with 9 additions and 4 deletions
|
@ -26,11 +26,14 @@ def get_apt_check_info(widget):
|
||||||
|
|
||||||
res_array = res.split(';')
|
res_array = res.split(';')
|
||||||
|
|
||||||
|
try:
|
||||||
s = res_array[0]
|
s = res_array[0]
|
||||||
if s.isdigit(): all_pkg = int(s)
|
if s.isdigit(): all_pkg = int(s)
|
||||||
|
|
||||||
s = res_array[1]
|
s = res_array[1]
|
||||||
if s.isdigit(): security = int(s)
|
if s.isdigit(): security = int(s)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
widget.set("all_pkg", all_pkg)
|
widget.set("all_pkg", all_pkg)
|
||||||
widget.set("security", security)
|
widget.set("security", security)
|
||||||
|
|
|
@ -32,6 +32,8 @@ class Module(bumblebee.engine.Module):
|
||||||
totalMem = ""
|
totalMem = ""
|
||||||
temp = ""
|
temp = ""
|
||||||
name = "not found"
|
name = "not found"
|
||||||
|
clockMem = ""
|
||||||
|
clockGpu = ""
|
||||||
for item in out_list:
|
for item in out_list:
|
||||||
try:
|
try:
|
||||||
key, val = item.split(':')
|
key, val = item.split(':')
|
||||||
|
|
Loading…
Reference in a new issue