X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..dc2a2c8ebd1a11e4a64555fda22c6859a51defff:/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