Skip to content

Commit

Permalink
fix: fixed error response (#375)
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Jun 8, 2024
1 parent e10493b commit 1a23a0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/views/core/invoices/manage_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def delete_code(request: HtmxHttpRequest, code):
if not invoice.has_access(request.user):
raise Invoice.DoesNotExist
except (Invoice.DoesNotExist, InvoiceURL.DoesNotExist):
return redirect("invoices:dashboard")
messages.error(request, "Invalid URL")
return render(request, "base/toasts.html")

# QuotaLimit.delete_quota_usage("invoices-access_codes", request.user, invoice.id, code_obj.created_on)

Expand Down

0 comments on commit 1a23a0b

Please sign in to comment.