]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_preference_controller.rb
initial untest nginx config. API 0.6 tweaking still required.
[rails.git] / app / controllers / user_preference_controller.rb
index b07f4ecc5d0e287051522099a1dfb96a3ce9fac4..59573047acc3591e22621f1fb041b99abe3f95d9 100644 (file)
@@ -52,7 +52,7 @@ class UserPreferenceController < ApplicationController
 
   # update the entire set of preferences
   def update
 
   # update the entire set of preferences
   def update
-    do
+    begin
       p = XML::Parser.string(request.raw_post)
     rescue LibXML::XML::Error, ArgumentError => ex
       raise OSM::APIBadXMLError.new("preferences", xml, ex.message)
       p = XML::Parser.string(request.raw_post)
     rescue LibXML::XML::Error, ArgumentError => ex
       raise OSM::APIBadXMLError.new("preferences", xml, ex.message)