KryptedGaming / django-eveonline-connector

Django extension that adds entity models, SSO views, and celery tasks to interact with the #1 sci-fi sandbox MMO.
https://pypi.org/project/django-eveonline-connector/
MIT License
1 stars 1 forks source link

Update characters triggering for untracked characters #43

Closed porowns closed 3 years ago

porowns commented 3 years ago
Task django_eveonline_connector.tasks.update_characters[2e218bcc-e0bd-4098-aa76-22f6a5c259ea] raised unexpected: AttributeError("'NoneType' object has no attribute 'track_characters'",)

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django_eveonline_connector/tasks.py", line 70, in update_characters
    if eve_character.token and eve_character.token.valid and eve_character.corporation.track_characters:
AttributeError: 'NoneType' object has no attribute 'track_characters'