dbapi.py
changeset 8695 358d8bed9626
parent 8682 20bd1cdf86ae
child 8702 d47089677d44
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   105     """
   105     """
   106     try:
   106     try:
   107         return _get_repository(uri, config, vreg)
   107         return _get_repository(uri, config, vreg)
   108     except ConnectionError:
   108     except ConnectionError:
   109         raise
   109         raise
   110     except Exception, exc:
   110     except Exception as exc:
   111         raise ConnectionError('cause: %r' % exc)
   111         raise ConnectionError('cause: %r' % exc)
   112 
   112 
   113 def _get_repository(uri=None, config=None, vreg=None):
   113 def _get_repository(uri=None, config=None, vreg=None):
   114     """ implements get_repository (see above) """
   114     """ implements get_repository (see above) """
   115     if uri is None:
   115     if uri is None: