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:
|
except django.db.utils.ProgrammingError as e:
|
||||||
if "in tsquery:" in str(e):
|
if "in tsquery:" in str(e):
|
||||||
return Response(
|
return Response({"detail": "Invalid query"}, status=400)
|
||||||
{"detail": "Invalid query"}, status=400
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue