Project

General

Profile

Bug #65856

OrganizationalUnit.DoesNotExist: OrganizationalUnit 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/61318/

KeyError: 'ou'
  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]

OrganizationalUnit.DoesNotExist: OrganizationalUnit matching query does not exist.
  File "hobo/agent/authentic2/provisionning.py", line 379, in do_provision
    self.notify_roles(ous, deleted.get(Role, []), mode='deprovision')
  File "hobo/agent/authentic2/provisionning.py", line 311, in notify_roles
    ous.setdefault(role.ou, []).append(role)
  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(

error in provisionning thread

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