Project

General

Profile

Bug #65857

au provisionning, Group.DoesNotExist: Group matching query does not exist.

Added by Sentry Io 8 months ago. Updated 8 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01 June 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/61250/

KeyError: 'group'
  File "django/db/models/fields/related_descriptors.py", line 164, in __get__
    rel_obj = self.field.get_cached_value(instance)
  File "django/db/models/fields/mixins.py", line 13, in get_cached_value
    return instance._state.fields_cache[cache_name]

Group.DoesNotExist: Group matching query does not exist.
(2 additional frame(s) were not displayed)
...
  File "hobo/provisionning/utils.py", line 135, in provision_user
    provision_user_groups(user, role_uuids)
  File "hobo/multitenant/utils.py", line 33, in provision_user_groups
    logger.info('removed role %s from %s (%s)', rel.group, user, user.pk)
  File "django/db/models/fields/related_descriptors.py", line 178, in __get__
    rel_obj = self.get_object(instance)
  File "django/db/models/fields/related_descriptors.py", line 145, in get_object
    return qs.get(self.field.get_reverse_related_filter(instance))
  File "django/db/models/query.py", line 406, in get
    raise self.model.DoesNotExist(

provisionning failed

History

#1

Updated by Frédéric Péters 8 months ago

  • Project changed from Suivi des traces to Hobo

Also available in: Atom PDF