You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when checking a song and there is no positive match, using:
..
recognizer = Recognizer(dejavu.fingerprinter, config)
res = recognizer.read("14622976.wav")
throws the following exception, would be nice if a "NotFound" exception is throwed instead.
*EDIT: or return None.
Traceback (most recent call last):
File "checksong.py", line 14, in <module>
res = recognizer.read("14622976.wav")
File "dejavu/dejavu/recognize.py", line 40, in read
return self.fingerprinter.align_matches(matches, starttime, verbose=verbose)
File "dejavu/dejavu/fingerprint.py", line 206, in align_matches
songname = self.db.get_song_by_id(song_id) [SQLDatabase.FIELD_SONGNAME]
TypeError: 'NoneType' object has no attribute '__getitem__'
The text was updated successfully, but these errors were encountered:
when checking a song and there is no positive match, using:
..
recognizer = Recognizer(dejavu.fingerprinter, config)
res = recognizer.read("14622976.wav")
throws the following exception, would be nice if a "NotFound" exception is throwed instead.
*EDIT: or return None.
The text was updated successfully, but these errors were encountered: