Delete corrupt session files.
This commit is contained in:
parent
e6837fb79b
commit
6433f7faee
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue