style(music): Correct codestyling of views
This commit is contained in:
parent
e8b7da9744
commit
590d01c11b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue