forked from 3wordchant/capsul-flask
Fix 500 error on Capsuls page
This commit is contained in:
parent
49dca12719
commit
76ec57689f
@ -274,6 +274,8 @@ def create():
|
||||
public_keys_for_account,
|
||||
request.form)
|
||||
if len(errors) == 0:
|
||||
for error in errors:
|
||||
flash(error)
|
||||
return redirect(f"{url_for('console.index')}?created={id}")
|
||||
|
||||
affordable_vm_sizes = dict()
|
||||
@ -284,9 +286,6 @@ def create():
|
||||
if vm_size["dollars_per_month"] <= account_balance+0.25:
|
||||
affordable_vm_sizes[key] = vm_size
|
||||
|
||||
for error in errors:
|
||||
flash(error)
|
||||
|
||||
if not capacity_avaliable:
|
||||
current_app.logger.warning(f"when capsul capacity is restored, send an email to {session['account']}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user