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

fix typo

parent f161c24d
...@@ -63,7 +63,7 @@ class Subscriber(models.Model): ...@@ -63,7 +63,7 @@ class Subscriber(models.Model):
def subscribe_in_mailman(self): def subscribe_in_mailman(self):
try: 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: except subprocess.CalledProcessError:
# maybe an error because email is already registered? # maybe an error because email is already registered?
result = subprocess.run( 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