bodhi/controllers.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 4d27a16a19ed34684c2592739425ff57a6a32565
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Sep 24 11:38:11 2010 -0400
Mask our database connection limit exceptions
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 1994950..2128d3c 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -647,7 +647,10 @@ class Root(controllers.RootController):
raise InvalidUpdateException(params)
except Exception, e:
log.exception(e)
- flash_log(str(e))
+ if 'dbname' in str(e):
+ flash_log('Error: database connection limit reached. Please try
again later')
+ else:
+ flash_log(str(e))
raise InvalidUpdateException(params)
# Verify that the user is either in the committers list, or is
Show replies by date