forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2023-06-29 23:19:15 +03:00
parent ef97a42a86
commit 812a637180
1 changed files with 1 additions and 1 deletions

View File

@ -408,6 +408,6 @@ def transfers(v:User):
@limiter.limit(DEFAULT_RATELIMIT)
@auth_desired
def donate(v):
if v.shadowbanned or v.chud == 1 or v.is_permabanned:
if v and (v.shadowbanned or v.chud == 1 or v.is_permabanned):
abort(404)
return render_template(f'donate.html', v=v)