Fix properly handle an error condition during process tv

This commit is contained in:
JackDandy 2024-03-11 02:45:17 +00:00
parent d19c8fe917
commit 1c0eb5acb8

View file

@ -119,7 +119,7 @@ class ProcessTVShow(object):
:rtype: bool :rtype: bool
""" """
# check if it's a folder # check if it's a folder
if not os.path.isdir(folder): if not folder or not os.path.isdir(folder):
return False return False
# make sure it isn't TV_DOWNLOAD_DIR # make sure it isn't TV_DOWNLOAD_DIR