Skip to content

Ts&Cs management command exception while running for the latest version #55

@Milstein

Description

@Milstein

While running the following commands on the regapp debug container:

  1. python manage.py terms --report --grace=0
  2. python manage.py terms --grace=0

Showing the following exceptions:

2024-09-04 15:17:46,964 regapp.apps.regapp.management.commands.terms INFO      Sent terms and conditions update notification to adk1361@bu.edu. Current accepted version v1.0.0, required version v1.1.0
Traceback (most recent call last):
  File "/code/manage.py", line 22, in <module>
    main()
  File "/code/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/code/regapp/apps/regapp/management/commands/terms.py", line 164, in handle
    [u['email']],
KeyError: 'email'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions