From: Michael Tremer Date: Fri, 14 Jan 2011 15:37:16 +0000 (+0100) Subject: manager: Fix crash is release directory does not exist, yet. X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=commitdiff_plain;h=921d98cccd374aff4096f0f87c77c622ed777858;ds=sidebyside manager: Fix crash is release directory does not exist, yet. --- diff --git a/www/webapp/backend/releases.py b/www/webapp/backend/releases.py index ca73723..9b82c13 100644 --- a/www/webapp/backend/releases.py +++ b/www/webapp/backend/releases.py @@ -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.