Commit 8c3a9e86 authored by fred's avatar fred
Browse files

fix typo

parent f161c24d
......@@ -63,7 +63,7 @@ class Subscriber(models.Model):
def subscribe_in_mailman(self):
try:
subprocess.run(['listadmin', '--add-member', self.email, settings.NEWSLETTER_NAME], checkTrue)
subprocess.run(['listadmin', '--add-member', self.email, settings.NEWSLETTER_NAME], check=True)
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