Skip to content
Snippets Groups Projects
Commit fa408b12 authored by Nico's avatar Nico
Browse files

Fix lint

parent a4751de2
No related branches found
No related tags found
No related merge requests found
Pipeline #5941 passed
......@@ -12,5 +12,5 @@ class PendingContactAlreadyExistsContact(BriarWrapperException):
def __init__(self, response, message=""):
self.response = response
error = response.json()
self.remoteAuthorName = error["remoteAuthorName"]
self.remote_author_name = error["remoteAuthorName"]
super().__init__(message)
......@@ -12,6 +12,6 @@ class PendingContactAlreadyExistsPendingContact(BriarWrapperException):
def __init__(self, response, message=""):
self.response = response
error = response.json()
self.pendingContactAlias = error["pendingContactAlias"]
self.pendingContactId = error["pendingContactId"]
self.pending_contact_alias = error["pendingContactAlias"]
self.pending_contact_id = error["pendingContactId"]
super().__init__(message)
......@@ -57,7 +57,7 @@ class Contacts(Model):
return
self._handle_add_pending_error(response)
def delete_pending(self, id: str) -> None:
def delete_pending(self, contact_id: str) -> None:
# pylint: disable=line-too-long
"""
Deletes pending contact with `id`
......@@ -68,7 +68,7 @@ class Contacts(Model):
"""
url = urljoin(BASE_HTTP_URL, self._API_ENDPOINT + "add/pending/")
response = _delete(url, headers=self._headers,
json={"pendingContactId": id})
json={"pendingContactId": contact_id})
if response.status_code == 200:
return
raise BriarWrapperException(response, "An unknown error occurred while"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment