X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..4e64291839d45a0c660fc84f11a6c4c811cf8f21:/lib/daemons/gpx_import.rb diff --git a/lib/daemons/gpx_import.rb b/lib/daemons/gpx_import.rb index c257c1bfc..4445d1ec0 100755 --- a/lib/daemons/gpx_import.rb +++ b/lib/daemons/gpx_import.rb @@ -23,10 +23,10 @@ loop do if gpx.actual_points > 0 Notifier.gpx_success(trace, gpx.actual_points).deliver else - Notifier.gpx_failure(trace, '0 points parsed ok. Do they all have lat,lng,alt,timestamp?').deliver + Notifier.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver trace.destroy end - rescue Exception => ex + rescue StandardError => ex logger.info ex.to_s ex.backtrace.each { |l| logger.info l } Notifier.gpx_failure(trace, ex.to_s + "\n" + ex.backtrace.join("\n")).deliver @@ -45,7 +45,7 @@ loop do begin trace.destroy - rescue Exception => ex + rescue StandardError => ex logger.info ex.to_s ex.backtrace.each { |l| logger.info l } end