Start adding tests
This commit is contained in:
@ -156,7 +156,11 @@ def jellyfin_websocket(request):
|
||||
@csrf_exempt
|
||||
@api_view(['POST'])
|
||||
def mopidy_websocket(request):
|
||||
data_dict = json.loads(request.data)
|
||||
try:
|
||||
data_dict = json.loads(request.data)
|
||||
except TypeError:
|
||||
logger.warning('Received Mopidy data as dict, rather than a string')
|
||||
data_dict = request.data
|
||||
|
||||
# For making things easier to build new input processors
|
||||
if getattr(settings, "DUMP_REQUEST_DATA", False):
|
||||
|
||||
Reference in New Issue
Block a user