bugfix: sing

This commit is contained in:
2025-03-01 07:56:47 -05:00
parent b2f216a575
commit 07f36c08bb
3 changed files with 3 additions and 5 deletions

View File

@ -24,13 +24,10 @@ class Utility:
Returns:
Union[bool, tuple]
"""
logging.debug("Activity? %s", activity)
try:
if (not song or len(song) < 2) and not activity:
# pylint: disable=superfluous-parens
return False
# pylint: enable=superfluous-parens
if not song and isinstance(activity, Activity):
if not song and activity:
if not activity.name:
return False # No valid activity found
match activity.name.lower():