Skip to content

Commit 0a00db0

Browse files
committed
Fix lint issues [skip ci]
1 parent 1002dea commit 0a00db0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

spelling_private_dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
KiB
22
MPixel
33
MiB
4+
MissingSchema
45
Ubuntu
56
admin
67
api

src/mock_vws/_decorators.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import Tuple, Union
99
from urllib.parse import urljoin, urlparse
1010

11-
from requests.exceptions import MissingSchema
11+
import requests
1212
from requests_mock.mocker import Mocker
1313

1414
from 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,

0 commit comments

Comments
 (0)