improve-search-error-handling #8
1 changed files with 0 additions and 1 deletions
|
@ -3,7 +3,6 @@ from movie_db.db_providers.omdb import OMDb
|
||||||
|
|
||||||
|
|
||||||
def omdb_search(request):
|
def omdb_search(request):
|
||||||
print("ENTERING MOVIE SEARCH")
|
|
||||||
query = request.GET.get("q")
|
query = request.GET.get("q")
|
||||||
if not query:
|
if not query:
|
||||||
return JsonResponse({"Error": "Missing query"}, status=400)
|
return JsonResponse({"Error": "Missing query"}, status=400)
|
||||||
|
|
Loading…
Add table
Reference in a new issue