Source

trac-ticketlinks / trac / db / pool.py

Diff from to

trac/db/pool.py

 
 from trac.db.util import ConnectionWrapper
 from trac.util.concurrency import threading
+from trac.util.text import exception_to_unicode
 from trac.util.translation import _
 
 
         errmsg = _("Unable to get database connection within %(time)d seconds.",
                    time=timeout)
         if err:
-            errmsg += " (%r)" % err
+            errmsg += " (%s)" % exception_to_unicode(err)
         raise TimeoutError(errmsg)
 
     def _take_cnx(self, connector, kwargs, key, tid):