lib/Zeta/plugins/seen.rb in zetabot-0.0.4 vs lib/Zeta/plugins/seen.rb in zetabot-0.0.5

- old
+ new

@@ -56,11 +56,15 @@ end def load_seen if File.exists?(File.join(Dir.home, '.zeta', 'cache', 'seen.rb')) - File.open(File.join(Dir.home, '.zeta', 'cache', 'seen.rb')) do |file| - return Marshal.load(file) + begin + File.open(File.join(Dir.home, '.zeta', 'cache', 'seen.rb')) do |file| + return Marshal.load(file) + end + rescue + return Hash.new end else return Hash.new end end \ No newline at end of file