From 111c50829d616e662a327b2442962d8f7df73eb5 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Thu, 15 Apr 2021 10:47:27 -0700 Subject: [PATCH] do not use default address, flash message and redirect back. --- suchwow/routes/post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/suchwow/routes/post.py b/suchwow/routes/post.py index 70888c2..3a2de0b 100644 --- a/suchwow/routes/post.py +++ b/suchwow/routes/post.py @@ -99,7 +99,8 @@ def create(): wallet = wownero.Wallet() account_index = wallet.new_account() except: - account_index = 0 + flash("Suchwow wallet is fucked up! Try again later.") + return redirect(request.url) post = Post( title=post_title, text=request.form.get("text", ""),