X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaScript.ml;h=26a0f2487503af6530841f54bc9b3c8cc0c35274;hb=dab3163daed8034aca17b9ed18d5200e4b9f046a;hp=99b7018e42ac9d50ffa921513e6b2c97a1847496;hpb=4b84dd78aa6b596a0d3ee38745890ff65efa8b10;p=helm.git diff --git a/helm/matita/matitaScript.ml b/helm/matita/matitaScript.ml index 99b7018e4..26a0f2487 100644 --- a/helm/matita/matitaScript.ml +++ b/helm/matita/matitaScript.ml @@ -93,8 +93,13 @@ let eval_with_engine status user_goal parsed_text st = let module UM = UriManager in DTE.fold ( fun k ((v,_) as value) acc -> - let v = UM.strip_xpointer (UM.uri_of_string v) in - if List.exists (fun (s,_) -> s = v) new_status.objects then + let b = + try + let v = UM.strip_xpointer (UM.uri_of_string v) in + List.exists (fun (s,_) -> s = v) new_status.objects + with UM.IllFormedUri _ -> false + in + if b then acc else DTE.add k value acc