From e7594579d713647a347c9ea7ed82c1d617c12f2b Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 22 Aug 2018 21:33:58 -0400 Subject: [PATCH] Revert "Fix for path returning None" This reverts commit b6fc720759fd2ee737aea578dc775267f552525b. --- get_movies.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/get_movies.py b/get_movies.py index f378ec2b2..fc43dfb5d 100644 --- a/get_movies.py +++ b/get_movies.py @@ -100,10 +100,7 @@ def update_movies(): for added_movie in added_movies: added_path = c.execute('SELECT path FROM table_movies WHERE tmdbId = ?', (added_movie,)).fetchone() - if added_path == None: - logging.error("No path returned from DB for movie with tmdbId " + added_movie) - else: - store_subtitles_movie(path_replace_movie(added_path[0])) + store_subtitles_movie(path_replace_movie(added_path[0])) # Close database connection db.close()