File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11KiB
22MPixel
33MiB
4+ MissingSchema
45Ubuntu
56admin
67api
Original file line number Diff line number Diff line change 88from typing import Tuple , Union
99from urllib .parse import urljoin , urlparse
1010
11- from requests . exceptions import MissingSchema
11+ import requests
1212from requests_mock .mocker import Mocker
1313
1414from mock_vws .database import VuforiaDatabase
@@ -48,8 +48,8 @@ def __init__( # pylint: disable=too-many-arguments
4848 500 response for on a match.
4949
5050 Raises:
51- requests.exceptions.MissingSchema: There is no schema in a given
52- URL.
51+ `` requests.exceptions.MissingSchema`` : There is no schema in a
52+ given URL.
5353 """
5454 super ().__init__ ()
5555 self ._real_http = real_http
@@ -64,7 +64,8 @@ def __init__( # pylint: disable=too-many-arguments
6464 for url in (base_vwq_url , base_vws_url ):
6565 result = urlparse (url )
6666 if not result .scheme :
67- raise MissingSchema (missing_scheme_error .format (url = url ))
67+ error = missing_scheme_error .format (url = url )
68+ raise requests .exceptions .MissingSchema (error )
6869
6970 self ._mock_vws_api = MockVuforiaWebServicesAPI (
7071 processing_time_seconds = processing_time_seconds ,
You can’t perform that action at this time.
0 commit comments