Revert "Fix for path returning None"

This reverts commit b6fc720759.
This commit is contained in:
morpheus65535 2018-08-22 21:32:29 -04:00
parent b6fc720759
commit 1d0651c9e8
1 changed files with 1 additions and 4 deletions

View File

@ -100,10 +100,7 @@ def update_movies():
for added_movie in added_movies: for added_movie in added_movies:
added_path = c.execute('SELECT path FROM table_movies WHERE tmdbId = ?', (added_movie,)).fetchone() added_path = c.execute('SELECT path FROM table_movies WHERE tmdbId = ?', (added_movie,)).fetchone()
if added_path == None: store_subtitles_movie(path_replace_movie(added_path[0]))
logging.error("No path returned from DB for movie with tmdbId " + added_movie)
else:
store_subtitles_movie(path_replace_movie(added_path[0]))
# Close database connection # Close database connection
db.close() db.close()