summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-07-28 18:38:39 +0000
committerTarmac <>2011-07-28 18:38:39 +0000
commit8243057d5692ab2e7b1670c9a6d67b0c33a4e9ae (patch)
tree8cc8d293f8414f435efdcc8cbbfe82c3b7036e4d
parent340c516817abdb93bcfe5830fee90b1e16ccda3d (diff)
parent0004f6bc6c772458f45027a76b1aa4fb31247264 (diff)
downloadnova-8243057d5692ab2e7b1670c9a6d67b0c33a4e9ae.tar.gz
nova-8243057d5692ab2e7b1670c9a6d67b0c33a4e9ae.tar.xz
nova-8243057d5692ab2e7b1670c9a6d67b0c33a4e9ae.zip
Catch DBError for duplicate projects.
-rw-r--r--nova/auth/dbdriver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/auth/dbdriver.py b/nova/auth/dbdriver.py
index a429b7812..0158c4e23 100644
--- a/nova/auth/dbdriver.py
+++ b/nova/auth/dbdriver.py
@@ -127,7 +127,7 @@ class DbDriver(object):
try:
project = db.project_create(context.get_admin_context(), values)
- except exception.Duplicate:
+ except (exception.Duplicate, exception.DBError):
raise exception.ProjectExists(project=name)
for member in members: