From 0d8585a2ab57ca4d8f3f4ee2429a2137f2045c6a Mon Sep 17 00:00:00 2001 From: Travis Cole <11240+kelp@users.noreply.github.com> Date: Sat, 20 Oct 2018 10:03:55 -0700 Subject: [PATCH] Return 0 as an int rather than a string. This was causing an ocassional crash in bumblebee/engine.py threshold_state when checkupdates fails, perhaps due to wifi not being up yet. For me this showed up regularly on login. --- bumblebee/modules/arch-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/arch-update.py b/bumblebee/modules/arch-update.py index 8df8b13..8c86047 100644 --- a/bumblebee/modules/arch-update.py +++ b/bumblebee/modules/arch-update.py @@ -27,7 +27,7 @@ class Module(bumblebee.engine.Module): packages.pop() return len(packages) - return '0' + return 0 def utilization(self, widget): return 'Update Arch: {}'.format(self.packages)