"...src/main/git@code.briarproject.org:briar/onionwrapper.git" did not exist on "1426094dc75e4e9b6a341599becd2a6e8b70a99f"
Newer
Older
# Copyright (c) 2021 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
"""
Thrown when a contact already exists while adding a pending contact
"""
from briar_wrapper.exception import BriarWrapperException
class PendingContactAlreadyExistsPendingContact(BriarWrapperException):
def __init__(self, response, message=""):
self.response = response
error = response.json()
self.pending_contact_alias = error["pendingContactAlias"]
self.pending_contact_id = error["pendingContactId"]