Skip to content

Commit

Permalink
Fix NoneType attribute error in np.py (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 2, 2024
2 parents 90108a4 + b5251c8 commit d43697f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions np.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def main() -> None:

if not args.loop:
now_playing = lastfm_network.get_user(args.username).get_now_playing()
if not now_playing:
return
output(is_track_loved(now_playing))
if args.say:
say(now_playing)
else:
last_played = None
while True:
Expand Down

0 comments on commit d43697f

Please sign in to comment.