Delete corrupt session files.

This commit is contained in:
Martin Edenhofer 2013-04-18 14:51:07 +02:00
parent e6837fb79b
commit 6433f7faee

View file

@ -1,4 +1,5 @@
require 'json' require 'json'
require 'rss'
module Session module Session
@ -73,6 +74,7 @@ module Session
data = Marshal.load( all ) data = Marshal.load( all )
} }
rescue Exception => e rescue Exception => e
File.delete(session_file)
puts "Error reading '#{session_file}':" puts "Error reading '#{session_file}':"
puts e.inspect puts e.inspect
return return