diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index 8fefb949..3b65c57b 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -236,9 +236,9 @@ public final class RhinoCore { // old generation and wasn't renewed -- delete it. // System.err.println("DELETING OLD FUNC: "+key); try { - ((ScriptableObject) op).setAttributes(key, op, 0); + ((ScriptableObject) op).setAttributes(key, 0); op.delete(key); - } catch (PropertyException px) { + } catch (Exception px) { System.err.println("Error unsetting property "+key+" on "+prototype); } } else {