fix 500 err
parent
e8ca6f3107
commit
2c14d23e7b
|
@ -177,7 +177,10 @@ def modmail_listing(v):
|
|||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||
@admin_level_required(PERMS['VIEW_MODMAIL'])
|
||||
def notifications_modmail(v):
|
||||
listing, total, page = modmail_listing(v)
|
||||
if v:
|
||||
listing, total, page = modmail_listing(v)
|
||||
else:
|
||||
listing, total, page = None, None, None
|
||||
|
||||
if v.client: return {"data":[x.json for x in listing]}
|
||||
|
||||
|
|
Loading…
Reference in New Issue