Skip to content

Commit 1b8220e

Browse files
author
Jim Bennett
committed
More lynting
1 parent b68e727 commit 1b8220e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

circuitpython_customvision/prediction/custom_vision_prediction_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ class CustomVisionPredictionClient():
4646
def __init__(
4747
self, api_key, endpoint):
4848

49-
self.__api_key = api_key
49+
self.__api_key = api_key
5050

5151
# build the root endpoint
5252
if not endpoint.lower().startswith('https://'):
5353
endpoint = 'https://' + endpoint
5454
if not endpoint.endswith('/'):
5555
endpoint = endpoint + '/'
56-
56+
5757
self.__base_endpoint = endpoint
5858
self.api_version = VERSION
5959

@@ -69,7 +69,7 @@ def __format_endpoint(self, url_format: str, project_id: str, published_name: st
6969

7070
def __process_image_url(self, route: str, project_id: str, published_name: str, url: str, store: bool, application: Optional[str]):
7171
endpoint = self.__format_endpoint(route, project_id, published_name, store, application)
72-
72+
7373
headers = {
7474
'Content-Type': 'application/json',
7575
'Prediction-Key': self.__api_key

circuitpython_customvision/prediction/models/customvision_error.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ class CustomVisionError(Exception):
33
An error from the custom vision service
44
"""
55
def __init__(self, message):
6+
super(CustomVisionError, self).__init__(message)
67
self.message = message

0 commit comments

Comments
 (0)