# HG changeset patch # User egj@socialplanning.org # Date 1265133747 0 # Node ID 81607129a45e631a9c87caa19dc4ef5564ef6ab5 # Parent d1b1019d9254309d47893ad0deb318465a0b5634 better error message diff -r d1b1019d9254 -r 81607129a45e decoupage/web.py --- a/decoupage/web.py Mon Jan 04 04:26:32 2010 +0000 +++ b/decoupage/web.py Tue Feb 02 18:02:27 2010 +0000 @@ -39,7 +39,9 @@ self.directory = self.directory.rstrip(os.path.sep) assert os.path.isdir(self.directory) self.template_directories = self.template_directories.split() # no spaces in directory names, for now - assert sum([os.path.isdir(directory) for directory in self.template_directories]) == len(self.template_directories) + + for directory in self.template_directories: + assert os.path.isdir(directory), "Decoupage template directory %s does not exist!" % directory # static file server self.fileserver = FileApp