Because your desktop computer does not have a battery! Awesome bug! \U0001f50d     It can indeed return `None`: https://github.com/giampaolo/psutil/blob/dccf8bedf34fced63f1962dd77b58f0da339759c/psutil/_pslinux.py#L1399