Commit f161c24d authored by fred's avatar fred
Browse files

fix check arg name

parent 3065a75e
......@@ -63,9 +63,7 @@ class Subscriber(models.Model):
def subscribe_in_mailman(self):
try:
subprocess.run(
['listadmin', '--add-member', self.email, settings.NEWSLETTER_NAME], check_call=True
)
subprocess.run(['listadmin', '--add-member', self.email, settings.NEWSLETTER_NAME], checkTrue)
except subprocess.CalledProcessError:
# maybe an error because email is already registered?
result = subprocess.run(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment