From 73d2d22b12bc79ae56f06dd89141019d9b989d50 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 04 2016 08:28:34 +0000 Subject: Let's log the exceptions when adding/removing user to groups This is likely never going to be used but better safe than sorry --- diff --git a/pagure/__init__.py b/pagure/__init__.py index 713bba1..da02fca 100644 --- a/pagure/__init__.py +++ b/pagure/__init__.py @@ -138,8 +138,8 @@ if APP.config.get('PAGURE_AUTH', None) in ['fas', 'openid']: user=flask.g.fas_user.username, is_admin=is_admin(), ) - except pagure.exceptions.PagureException: - pass + except pagure.exceptions.PagureException as err: + LOG.debug(err) # Remove the old groups for group in groups - fas_groups: try: @@ -151,8 +151,8 @@ if APP.config.get('PAGURE_AUTH', None) in ['fas', 'openid']: is_admin=is_admin(), force=True, ) - except pagure.exceptions.PagureException: - pass + except pagure.exceptions.PagureException as err: + LOG.debug(err) SESSION.commit() except SQLAlchemyError as err: