Skip to content

Commit

Permalink
It should check for None specificly
Browse files Browse the repository at this point in the history
  • Loading branch information
sa7dse committed Sep 25, 2013
1 parent 7a75813 commit 8485494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solaar/cli/show.py
Expand Up @@ -107,7 +107,7 @@ def _print_device(dev):
if battery is not None:
from logitech_receiver.common import NamedInt as _NamedInt
level, status = battery
if level:
if level is not None:
if isinstance(level, _NamedInt):
text = str(level)
else:
Expand Down

0 comments on commit 8485494

Please sign in to comment.