Add fix for decoding invalid user preferences

pull/19/head
Omar Roth 7 years ago
parent abab7fca87
commit 68d5ee95b3

@ -119,7 +119,11 @@ end
class User class User
module PreferencesConverter module PreferencesConverter
def self.from_rs(rs) def self.from_rs(rs)
Preferences.from_json(rs.read(String)) begin
Preferences.from_json(rs.read(String))
rescue ex
DEFAULT_USER_PREFERENCES
end
end end
end end

Loading…
Cancel
Save