manager: Fix crash is release directory does not exist, yet.
[people/shoehn/ipfire.org.git] / 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.