admin: fix error handling when importing a form
This commit is contained in:
parent
b4645a9771
commit
747bff77d7
|
@ -1491,6 +1491,7 @@ class FormsDirectory(AccessControlled, Directory):
|
|||
form.set_error('file', _('You have to enter a file or a URL.'))
|
||||
raise ValueError()
|
||||
|
||||
error, reason = False, None
|
||||
try:
|
||||
formdef = FormDef.import_from_xml(fp)
|
||||
except FormdefImportError, e:
|
||||
|
|
Loading…
Reference in New Issue