Skip to content

Error during getLyrics() #10

@SimonIT

Description

@SimonIT

Describe the bug
Exception thrown during loading the lyrics.

Traceback (most recent call last):
  File "<input>", line 4, in <module>
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\azapi\azapi.py", line 90, in getLyrics
    self.lyrics = lyrics.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

To Reproduce
Steps to reproduce the behavior:

api = azapi.AZlyrics('duckduckgo', accuracy=0.5)

api.artist = "Glass Animals"

api.getLyrics(url="http://www.azlyrics.com/lyrics/glassanimals/homemovie1994.html")

Expected behavior
It seem that no lyrics is available but the page exist. Maybe return None?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions