X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..baf10cd39289cd7e94a819305e46f43e85a136c6:/lib/daemons/gpx_import.rb diff --git a/lib/daemons/gpx_import.rb b/lib/daemons/gpx_import.rb index c257c1bfc..3679aa448 100755 --- a/lib/daemons/gpx_import.rb +++ b/lib/daemons/gpx_import.rb @@ -26,7 +26,7 @@ loop do 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