summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-03-31 14:23:49 -0400
committerSimo Sorce <simo@redhat.com>2015-04-10 10:37:37 -0400
commitfa333f2d94885df6beb3d7ea29380e28fde651a4 (patch)
tree6659742c184633c0dae08905914c8d7e967370cc /ipsilon/providers/saml2
parent8ad119e79a510fa465b725570a300e5b3e356751 (diff)
downloadipsilon-fa333f2d94885df6beb3d7ea29380e28fde651a4.tar.gz
ipsilon-fa333f2d94885df6beb3d7ea29380e28fde651a4.tar.xz
ipsilon-fa333f2d94885df6beb3d7ea29380e28fde651a4.zip
Print exceptions when saving data fails in admin UI
There were places where a broad exception was caught when saving administrative changes but the actual exception wasn't logged. The user was presented only with a 'Failed to save data!' message. https://fedorahosted.org/ipsilon/ticket/39 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2')
-rw-r--r--ipsilon/providers/saml2/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipsilon/providers/saml2/admin.py b/ipsilon/providers/saml2/admin.py
index 2503be1..d5a5bdf 100644
--- a/ipsilon/providers/saml2/admin.py
+++ b/ipsilon/providers/saml2/admin.py
@@ -255,7 +255,8 @@ class SPAdminPage(AdminPage):
self.parent.rename_sp(rename[0], rename[1])
message = "Properties successfully changed"
message_type = ADMIN_STATUS_OK
- except Exception: # pylint: disable=broad-except
+ except Exception, e: # pylint: disable=broad-except
+ self.error('Failed to save data: %s' % e)
message = "Failed to save data!"
message_type = ADMIN_STATUS_ERROR