From a23812f880f197452ed1dc05b5efa53a5b6a2df0 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 21 Sep 2009 05:39:43 +0000 Subject: [PATCH] Fix #1014 autoadd should verify that the autoadd location is a directory --- deluge/core/autoadd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/autoadd.py b/deluge/core/autoadd.py index 136b57d8c..6a5e3d02c 100644 --- a/deluge/core/autoadd.py +++ b/deluge/core/autoadd.py @@ -68,7 +68,7 @@ class AutoAdd(component.Component): return # Check the auto add folder for new torrents to add - if not os.path.exists(self.config["autoadd_location"]): + if not os.path.isdir(self.config["autoadd_location"]): log.warning("Invalid AutoAdd folder: %s", self.config["autoadd_location"]) component.pause("AutoAdd") return