Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'external_id' #1012

Closed
sentry-io bot opened this issue Sep 8, 2022 · 0 comments · Fixed by #1013
Closed

AttributeError: 'NoneType' object has no attribute 'external_id' #1012

sentry-io bot opened this issue Sep 8, 2022 · 0 comments · Fixed by #1013
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 8, 2022

Sentry Issue: CARE-GK

AttributeError: 'NoneType' object has no attribute 'external_id'
(8 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "rest_framework/mixins.py", line 19, in create
    self.perform_create(serializer)
  File "rest_framework/mixins.py", line 24, in perform_create
    serializer.save()
  File "care/facility/api/serializers/asset.py", line 80, in save
    cache_key = "asset:" + str(self.instance.external_id)
@mathew-alex mathew-alex added this to Care Sep 8, 2022
@mathew-alex mathew-alex moved this to Triage in Care Sep 8, 2022
Repository owner moved this from Triage to Done in Care Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant