style(music): Correct codestyling of views

This commit is contained in:
Georg Krause 2022-10-13 11:58:25 +02:00
parent e8b7da9744
commit 590d01c11b
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 3 deletions

View File

@ -836,9 +836,7 @@ class Search(views.APIView):
}
except django.db.utils.ProgrammingError as e:
if "in tsquery:" in str(e):
return Response(
{"detail": "Invalid query"}, status=400
)
return Response({"detail": "Invalid query"}, status=400)
else:
raise