prevent exception in admin, thanks Marin

This commit is contained in:
mdipierro
2012-09-04 14:47:13 -05:00
parent ee0cffc944
commit f2247bc5b6
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.6 (2012-09-04 14:43:30) stable
Version 2.0.6 (2012-09-04 14:47:09) stable
+5 -1
View File
@@ -244,11 +244,15 @@ def site():
DIV(T('Unable to download app because:'),PRE(str(e)))
redirect(URL(r=request))
fname = form_update.vars.url
elif form_update.accepted and form_update.vars.file:
fname = request.vars.file.filename
f = request.vars.file.file
else:
session.flash = 'No file uploaded and no URL specified'
redirect(URL(r=request))
if f:
appname = cleanpath(form_update.vars.name)
installed = app_install(appname, f,