Skip to content

Commit c9266b5

Browse files
authored
Merge pull request #24 from Exabyte-io/feature/SOF-4495
replace NotImplemented with NotImplementedError, per the language spec
2 parents bca37a5 + 71350d1 commit c9266b5

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

exabyte_api_client/endpoints/bank_entity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ def __init__(self, host, port, account_id, auth_token, version=DEFAULT_API_VERSI
2424
super(BankEntityEndpoints, self).__init__(host, port, account_id, auth_token, version, secure, **kwargs)
2525

2626
def delete(self, id_):
27-
raise NotImplemented
27+
raise NotImplementedError
2828

2929
def update(self, id_, modifier):
30-
raise NotImplemented
30+
raise NotImplementedError
3131

3232
def create(self, config):
33-
raise NotImplemented
33+
raise NotImplementedError
3434

3535
def copy(self, id_, account_id=None):
3636
"""

exabyte_api_client/endpoints/charges.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def __init__(self, host, port, account_id, auth_token, version=DEFAULT_API_VERSI
2828
self.name = 'charges'
2929

3030
def delete(self, id_):
31-
raise NotImplemented
31+
raise NotImplementedError
3232

3333
def update(self, id_, modifier):
34-
raise NotImplemented
34+
raise NotImplementedError
3535

3636
def create(self, config):
37-
raise NotImplemented
37+
raise NotImplementedError
3838

3939
def get_by_job(self, job):
4040
return next(iter(self.list(query={"jid": job["compute"]["cluster"]["jid"]})), None)

exabyte_api_client/endpoints/projects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def __init__(self, host, port, account_id, auth_token, version=DEFAULT_API_VERSI
2929
self.name = 'projects'
3030

3131
def delete(self, id_):
32-
raise NotImplemented
32+
raise NotImplementedError
3333

3434
def update(self, id_, modifier):
35-
raise NotImplemented
35+
raise NotImplementedError
3636

3737
def create(self, config):
38-
raise NotImplemented
38+
raise NotImplementedError

exabyte_api_client/endpoints/raw_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, host, port, account_id, auth_token, version=DEFAULT_API_VERSI
4747
self.name = 'raw-properties'
4848

4949
def delete(self, id_):
50-
raise NotImplemented
50+
raise NotImplementedError
5151

5252
def update(self, id_, modifier):
53-
raise NotImplemented
53+
raise NotImplementedError

exabyte_api_client/endpoints/refined_properties.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def __init__(self, host, port, account_id, auth_token, version=DEFAULT_API_VERSI
2828
self.name = 'refined-properties'
2929

3030
def delete(self, id_):
31-
raise NotImplemented
31+
raise NotImplementedError
3232

3333
def update(self, id_, modifier):
34-
raise NotImplemented
34+
raise NotImplementedError
3535

3636
def create(self, config):
37-
raise NotImplemented
37+
raise NotImplementedError

tests/integration/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_default_config(self):
2828
Returns the default entity config.
2929
Override upon inheritance.
3030
"""
31-
raise NotImplemented
31+
raise NotImplementedError
3232

3333
def create_entity(self, kwargs=None):
3434
entity = self.get_default_config()

0 commit comments

Comments
 (0)