diff --git a/supysonic/api/__init__.py b/supysonic/api/__init__.py index f84736a..8363381 100644 --- a/supysonic/api/__init__.py +++ b/supysonic/api/__init__.py @@ -81,6 +81,9 @@ def get_client_prefs(): if not request.path.startswith('/rest/'): return + if 'c' not in request.values: + return request.error_formatter(10, 'Missing required parameter') + client = request.values.get('c') prefs = store.get(ClientPrefs, (request.user.id, client)) if not prefs: