diff --git a/files/routes/subs.py b/files/routes/subs.py index 516ee789f..f9ccbb6b4 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -362,8 +362,8 @@ def create_sub2(v): return render_template("sub/create_hole.html", v=v, cost=HOLE_COST, error="You don't have enough coins!"), 403 v.coins -= HOLE_COST - g.db.add(v) + if v.shadowbanned: return {"error": "Internal Server Error"}, 500 sub = Sub(name=name) g.db.add(sub)