---

** [tickets:#7815] KeyError: 'name'**

**Status:** in-progress
**Milestone:** unreleased
**Created:** Tue Jan 06, 2015 06:55 PM UTC by Dave Brondsema
**Last Updated:** Tue Jan 06, 2015 06:55 PM UTC
**Owner:** Igor Bondarenko

This error shouldn't normally occur, but we ran into it once and it'd better 
for Allura to be forgiving in its input.

~~~~
File '/var/local/allura/Allura/allura/model/project.py', line 877 in admins
  return self.users_with_role('Admin')
File '/var/local/allura/Allura/allura/model/project.py', line 871 in 
users_with_role
  for user in g.credentials.users_with_named_role(self.root_project._id, 
role_name):
File '/var/local/allura/Allura/allura/lib/security.py', line 150 in 
users_with_named_role
  role = RoleCache(self, [r for r in self.project_roles(project_id) if 
r['name'] == name])
KeyError: 'name'
~~~~


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to