Fix the call that determines if an organization has enough private repositories.

This commit is contained in:
yackob03 2013-11-05 14:55:05 -05:00
parent ac72a8d86d
commit 296695cb87
2 changed files with 18 additions and 22 deletions

View file

@ -269,7 +269,7 @@ def get_user_organizations(username):
def get_organization(name):
try:
return User.get(username = name, organization = True)
return User.get(username=name, organization=True)
except User.DoesNotExist:
raise InvalidOrganizationException('Organization does not exist: %s' %
name)