update_badges: TypeError: save() got an unexpected keyword argument 'title'

RESOLVED FIXED

Status

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: groovecoder, Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
From: root@developeradm.private.scl3.mozilla.com
Subject: Cron <root@developeradm> /data/developer-dev/src/developer-dev.allizom.org/update

Traceback (most recent call last):
  File "manage.py", line 41, in <module>
    execute_from_command_line(sys.argv)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django-badger/badger/management/commands/update_badges.py", line 19, in handle
    update_badges(overwrite=True)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django-badger/badger/management/__init__.py", line 58, in update_badges
    badger.utils.update_badges(badges_mod.badges, overwrite)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django-badger/badger/utils.py", line 20, in update_badges
    badges.append(update_badge(data, overwrite=overwrite))
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django-badger/badger/utils.py", line 42, in update_badge
    badge.save(**data)
  File "/data/developer-dev/src/developer-dev.allizom.org/kuma/vendor/src/django-badger/badger/models.py", line 467, in save
    super(Badge, self).save(**kwargs)
TypeError: save() got an unexpected keyword argument 'title'
There was an error while updating. Please try again later. Aborting.
Looks like this is a django-badger issue: https://github.com/mozilla/django-badger/pull/198

Comment 3

5 years ago
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/051d13149787ea07ff794d1b1cf156591d4a9e91
bug 967182: Update django-badger for bugfix

https://github.com/mozilla/kuma/commit/28bfd44c30693039d6215e1edb5558c0e9cd074e
Merge pull request #1954 from lmorchard/967182-badger

bug 967182: Update django-badger for bugfix
This should be fixed
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.