rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.39k stars 600 forks source link

ERROR: Uncaught exception. ValueError: the query contains a null character #3209

Open rulimanurung opened 5 years ago

rulimanurung commented 5 years ago

Hi, first time user here, running a scan on my music library and encountered this error in the logs:

Uncaught exception: Traceback (most recent call last):
File "/home/media/mybin/headphones/headphones/logger.py", line 214, in new_run
old_run(*args, **kwargs)
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/media/mybin/headphones/headphones/librarysync.py", line 406, in libraryScan
'SELECT ArtistName FROM have WHERE ArtistName LIKE ' + artist_lookup + ' AND Matched = "Failed"'))
File "/home/media/mybin/headphones/headphones/db.py", line 146, in select
sqlResults = self.action(query, args).fetchall()
File "/home/media/mybin/headphones/headphones/db.py", line 98, in action
sqlResult = c.execute(query)
ValueError: the query contains a null character