manager: Fix crash is release directory does not exist, yet.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Jan 2011 15:37:16 +0000 (16:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Jan 2011 15:37:16 +0000 (16:37 +0100)
www/webapp/backend/releases.py

index ca73723..9b82c13 100644 (file)
@@ -200,6 +200,9 @@ class Release(object):
 
                path = os.path.join(basepath, self.path)
 
+               if not os.path.exists(path):
+                       return
+
                files = [f.filename for f in self.files]
 
                # Make files that do not exists not loadable.