mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 08:24:00 +01:00
Scan Artist exception handling
This commit is contained in:
@@ -353,9 +353,13 @@ class WebInterface(object):
|
|||||||
if not os.path.isdir(artistfolder.encode(headphones.SYS_ENCODING)):
|
if not os.path.isdir(artistfolder.encode(headphones.SYS_ENCODING)):
|
||||||
logger.debug("Cannot find directory: " + artistfolder)
|
logger.debug("Cannot find directory: " + artistfolder)
|
||||||
continue
|
continue
|
||||||
threading.Thread(target=librarysync.libraryScan,
|
try:
|
||||||
kwargs={"dir": artistfolder, "artistScan": True, "ArtistID": ArtistID,
|
threading.Thread(target=librarysync.libraryScan,
|
||||||
"ArtistName": artist_name}).start()
|
kwargs={"dir": artistfolder, "artistScan": True, "ArtistID": ArtistID,
|
||||||
|
"ArtistName": artist_name}).start()
|
||||||
|
except Exception as e:
|
||||||
|
logger.error('Unable to complete the scan: %s' % e)
|
||||||
|
|
||||||
raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID)
|
raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID)
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
|
|||||||
Reference in New Issue
Block a user