[refactoring] don't hide exceptions
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 05 Dec 2019 18:38:00 +0100
changeset 12806 91e262556573
parent 12805 8cf02773a6b3
child 12807 fb0936668535
[refactoring] don't hide exceptions
cubicweb/server/repository.py
--- a/cubicweb/server/repository.py	Thu Dec 05 18:37:27 2019 +0100
+++ b/cubicweb/server/repository.py	Thu Dec 05 18:38:00 2019 +0100
@@ -196,8 +196,8 @@
 
                 try:
                     cnxset.close(True)
-                except Exception:
-                    self.exception('error while closing %s' % cnxset)
+                except Exception as e:
+                    self.exception('error while closing %s, error: %s' % (cnxset, e))
 
 
 class Repository(object):