Kaydet (Commit) b080e80a authored tarafından Your Name's avatar Your Name

xml parse error is vital

üst 3dedc15e
......@@ -157,7 +157,6 @@ def plan_emerge(A):
order_build = G_f.topological_sort()
order_build.reverse()
order_inst = inary.operations.install.plan_install_pkg_names(install_list)
return order_inst, order_build
......@@ -712,8 +712,7 @@ class autoxml(oo.autosuper, oo.autoprop):
return value
else:
if req == mandatory:
errs.append(
where + ': ' + _('Mandatory token {} not available.').format(token))
raise Exception(_('Mandatory token {} not available.').format(token)+"\n {}".format(where))
return None
def encode(node, value, errs):
......@@ -722,9 +721,7 @@ class autoxml(oo.autosuper, oo.autoprop):
writetext(node, token, str(value))
else:
if req == mandatory:
errs.append(
_('Mandatory token {} not available.').format(token))
raise Exception(_('Mandatory token {} not available.').format(token)+"\n {}".format(value))
def errors(value, where):
errs = []
if value and not isinstance(value, token_type):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment