equal
deleted
inserted
replaced
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: |