mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-13 11:52:15 -04:00
Add fix for decoding invalid user preferences
This commit is contained in:
parent
abab7fca87
commit
68d5ee95b3
1 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,11 @@ end
|
||||||
class User
|
class User
|
||||||
module PreferencesConverter
|
module PreferencesConverter
|
||||||
def self.from_rs(rs)
|
def self.from_rs(rs)
|
||||||
|
begin
|
||||||
Preferences.from_json(rs.read(String))
|
Preferences.from_json(rs.read(String))
|
||||||
|
rescue ex
|
||||||
|
DEFAULT_USER_PREFERENCES
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue