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,12 +91,13 @@ Mailing list for end-user discussion and questions related to the
|
||||||
try:
|
try:
|
||||||
mailing_list = lists.get_list(owner, list_name)
|
mailing_list = lists.get_list(owner, list_name)
|
||||||
except:
|
except:
|
||||||
mailing_list = lists.create_list(owner, Validation({
|
valid = Validation({
|
||||||
"name": list_name,
|
"name": list_name,
|
||||||
"description": descs[list_name],
|
"description": descs[list_name],
|
||||||
}))
|
})
|
||||||
if not mailing_list:
|
mailing_list = lists.create_list(owner, valid))
|
||||||
raise Exception(json.dumps(valid.response))
|
if not mailing_list:
|
||||||
|
raise Exception(json.dumps(valid.response))
|
||||||
|
|
||||||
ml = MailingList()
|
ml = MailingList()
|
||||||
ml.remote_id = mailing_list["id"]
|
ml.remote_id = mailing_list["id"]
|
||||||
|
|
Loading…
Reference in New Issue