diff --git a/Readarr/delete_files.py b/Readarr/delete_files.py old mode 100644 new mode 100755 index c2494d3..f4528f5 --- a/Readarr/delete_files.py +++ b/Readarr/delete_files.py @@ -31,14 +31,14 @@ for key, value in book.items(): f.write('\n') f.close() - if radarrBasePath not in PATH_LIST: - try: - os.remove(radarrSourcePath) - os.rmdir(radarrMovieFolder) - except: - pass - else: - try: - os.remove(radarrSourcePath) - except: - pass +if radarrBasePath not in PATH_LIST: + try: + os.remove(radarrSourcePath) + os.rmdir(radarrMovieFolder) + except: + pass +else: + try: + os.remove(radarrSourcePath) + except: + pass