Ensure preferences can be loaded using preferences.json. #7516

This commit is contained in:
Yogesh Mahajan 2024-06-12 12:07:28 +05:30 committed by GitHub
parent 0cb75bdcab
commit bdadc77235
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -496,6 +496,8 @@ class ManagePreferences:
sqlite_path: Optional[str] = None, sqlite_path: Optional[str] = None,
): ):
"""Set User preferences.""" """Set User preferences."""
if not pref_options:
pref_options = []
if input_file: if input_file:
from urllib.parse import unquote from urllib.parse import unquote