]> git.openstreetmap.org Git - rails.git/blobdiff - app/jobs/trace_importer_job.rb
Merge remote-tracking branch 'upstream/pull/5231'
[rails.git] / app / jobs / trace_importer_job.rb
index 940dd6c7907a39972ff2f261d2091438e1d7c565..48285cbc1ebd60273f108cdf526f8eba5e7a6b8c 100644 (file)
@@ -10,6 +10,10 @@ class TraceImporterJob < ApplicationJob
       UserMailer.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver
       trace.destroy
     end
+  rescue XML::Error => e
+    logger.info e.to_s
+    UserMailer.gpx_failure(trace, e).deliver
+    trace.destroy
   rescue StandardError => e
     logger.info e.to_s
     e.backtrace.each { |l| logger.info l }