From 44d45ca760acf9305db15ad82e62f0d7823eaa53 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Mon, 2 Jun 2014 01:39:55 +0200 Subject: [PATCH] Fixing UnboundLocalError when attempting to process nonexisting dir --- sickbeard/processTV.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index b722109f..ba4ccd09 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -397,6 +397,7 @@ def delete_dir(processPath): def get_path_dir_files(dirName, nzbName, type): + path = "" if dirName == sickbeard.TV_DOWNLOAD_DIR and not nzbName or type == "manual": #Scheduled Post Processing Active #Get at first all the subdir in the dirName