Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • concrexit concrexit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 70
    • Issues 70
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • thaliathalia
  • concrexitconcrexit
  • Issues
  • #674
Closed
Open
Issue created Aug 15, 2018 by Joren Vrancken@jvranckenContributor

sendexpirationnotification.py crashed

One-sentence description

sendexpirationnotification.py crashed while being run by cron.

Current behaviour

Cron <root@virtueleivo> /var/docker-compose/concrexit/manage.py.sh sendexpirationnotification 2>&1 > /var/www/concrexit/log/cron_sendexpirationnotification.log
Traceback (most recent call last):
  File "/usr/src/app/website/manage.py", line 19, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/usr/src/app/website/members/management/commands/sendexpirationnotification.py", line 18, in handle
    emails.send_expiration_announcement(bool(options['dry-run']))
  File "/usr/src/app/website/members/emails.py", line 90, in send_expiration_announcement
    with translation.override(member.language):
AttributeError: 'Member' object has no attribute 'language'

Expected behaviour

No crash

Steps to reproduce

  1. run sendexpirationnotification.py command.
Edited Aug 15, 2018 by Joren Vrancken
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking