From 01883c1284c083edc48d6707166deda06efef0bb Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Mon, 15 Apr 2019 20:32:21 +0200 Subject: [PATCH] [modules] Fix two minor Travis complaints --- bumblebee/modules/apt.py | 11 +++++++---- bumblebee/modules/nvidiagpu.py | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bumblebee/modules/apt.py b/bumblebee/modules/apt.py index 0e373c9..ab8f227 100644 --- a/bumblebee/modules/apt.py +++ b/bumblebee/modules/apt.py @@ -26,11 +26,14 @@ def get_apt_check_info(widget): res_array = res.split(';') - s = res_array[0] - if s.isdigit(): all_pkg = int(s) + try: + s = res_array[0] + if s.isdigit(): all_pkg = int(s) - s = res_array[1] - if s.isdigit(): security = int(s) + s = res_array[1] + if s.isdigit(): security = int(s) + except: + pass widget.set("all_pkg", all_pkg) widget.set("security", security) diff --git a/bumblebee/modules/nvidiagpu.py b/bumblebee/modules/nvidiagpu.py index 810e182..03d37a6 100644 --- a/bumblebee/modules/nvidiagpu.py +++ b/bumblebee/modules/nvidiagpu.py @@ -32,6 +32,8 @@ class Module(bumblebee.engine.Module): totalMem = "" temp = "" name = "not found" + clockMem = "" + clockGpu = "" for item in out_list: try: key, val = item.split(':')