mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Fix validation errors on new list
This commit is contained in:
parent
8bafcc57c6
commit
b5ddb82dd0
|
@ -91,10 +91,11 @@ Mailing list for end-user discussion and questions related to the
|
|||
try:
|
||||
mailing_list = lists.get_list(owner, list_name)
|
||||
except:
|
||||
mailing_list = lists.create_list(owner, Validation({
|
||||
valid = Validation({
|
||||
"name": list_name,
|
||||
"description": descs[list_name],
|
||||
}))
|
||||
})
|
||||
mailing_list = lists.create_list(owner, valid))
|
||||
if not mailing_list:
|
||||
raise Exception(json.dumps(valid.response))
|
||||
|
||||
|
|
Loading…
Reference in New Issue