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
......@@ -19,7 +19,7 @@
<div class="prose max-w-none mb-8">
<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>
</div>
......
......@@ -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()
return render(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment