Add fix for decoding invalid user preferences

This commit is contained in:
Omar Roth 2018-07-18 19:13:06 -05:00
parent abab7fca87
commit 68d5ee95b3

View File

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