Skip to content
Snippets Groups Projects
Commit 125ea1dd authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

handle errors in a better way

parent 1c340e8e
No related branches found
No related tags found
1 merge request!8Release
Pipeline #12348 passed
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="prose max-w-none mb-8"> <div class="prose max-w-none mb-8">
<p> <p>
Výsledky níže můžeš zkopírovat do Majáku. Výsledky níže můžeš zkopírovat do Majáku. <strong>Pozor, tato stránka se zobrazí pouze jednou!</strong>
</p> </p>
</div> </div>
......
...@@ -45,7 +45,9 @@ def exchange(request): ...@@ -45,7 +45,9 @@ def exchange(request):
} }
) )
exchange_request.raise_for_status() if not exchange_request.ok:
raise HTTPExceptions.BAD_REQUEST
exchange_request = exchange_request.json() exchange_request = exchange_request.json()
return render( return render(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment