From be332005fae58eca48d2f7274403088d15348791 Mon Sep 17 00:00:00 2001 From: James Baumgarten Date: Fri, 10 Feb 2023 08:52:53 -0700 Subject: [PATCH] fix bug in pipewire module --- bumblebee_status/modules/contrib/pipewire.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee_status/modules/contrib/pipewire.py b/bumblebee_status/modules/contrib/pipewire.py index d5f46ea..4c0f23a 100644 --- a/bumblebee_status/modules/contrib/pipewire.py +++ b/bumblebee_status/modules/contrib/pipewire.py @@ -68,6 +68,8 @@ class Module(core.module.Module): ) def volume(self, widget): + if self.__level == "N/A": + return self.__level return "{}%".format(int(float(self.__level) * 100)) def update(self):