From b9ebe9de3f7f03429c30393f9f578d6975e459c4 Mon Sep 17 00:00:00 2001 From: nishiki Date: Mon, 11 May 2015 19:23:59 +0200 Subject: [PATCH] fix bug --- lib/Sync.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Sync.rb b/lib/Sync.rb index ce98596..792de3d 100644 --- a/lib/Sync.rb +++ b/lib/Sync.rb @@ -93,7 +93,7 @@ module MPW end # Remove an old item - if item.last_sync < @config.last_sync + if item.last_sync.to_i < @config.last_sync item.delete end end @@ -128,7 +128,7 @@ module MPW @config.set_last_sync return true - rescue Exception => e +# rescue Exception => e @error_msg = "#{I18n.t('error.sync.unknown')} #{e}" return false end