tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.2k stars 229 forks source link

fix bug in pipewire module #950

Closed jebaum closed 1 year ago

jebaum commented 1 year ago

name: Improvement about: You have some improvement to make bumblebee-status bar better?

Improvement

there was a bug in my initial implementation - if the string "N/A" is returned because for some reason the volume can't be fetched for a tick during an update (seems to happen sometimes when switching audio streams), the code tries to convert it to a float, which throws a ValueError and crashes bumblebee. make sure to catch that case

tobi-wan-kenobi commented 1 year ago

Many thanks!