mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
fix bug
This commit is contained in:
parent
2d7dacb02c
commit
b9ebe9de3f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue