Skip to content

Commit ed2bf9b

Browse files
committed
Formatted code with black
1 parent ad477de commit ed2bf9b

File tree

101 files changed

+935
-464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+935
-464
lines changed

src/bitpay/client.py

Lines changed: 596 additions & 291 deletions
Large diffs are not rendered by default.

src/bitpay/exceptions/bill_creation_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class BillCreationException(BillException):
88
"""
99
BillCreationException
1010
"""
11+
1112
__bitpay_message = "Failed to create bill"
1213
__bitpay_code = "BITPAY-BILL-CREATE"
1314
__api_code = ""

src/bitpay/exceptions/bill_delivery_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class BillDeliveryException(BillException):
88
"""
99
BillDeliveryException
1010
"""
11+
1112
__bitpay_message = "Failed to deliver bill"
1213
__bitpay_code = "BITPAY-BILL-DELIVERY"
1314
__api_code = ""

src/bitpay/exceptions/bill_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class BillException(BitPayException):
99
"""
1010
BillException
1111
"""
12+
1213
__bitpay_message = "An unexpected error occurred while trying to manage the bill"
1314
__bitpay_code = "BITPAY-BILL-GENERIC"
1415
__api_code = ""

src/bitpay/exceptions/bill_query_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class BillQueryException(BillException):
88
"""
99
BillQueryException
1010
"""
11+
1112
__bitpay_message = "Failed to retrieve bill"
1213
__bitpay_code = "BITPAY-BILL-GET"
1314
__api_code = ""

src/bitpay/exceptions/bill_update_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class BillUpdateException(BillException):
88
"""
99
BillUpdateException
1010
"""
11+
1112
__bitpay_message = "Failed to update bill"
1213
__bitpay_code = "BITPAY-BILL-UPDATE"
1314
__api_code = ""

src/bitpay/exceptions/bitpay_exception.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class BitPayException(Exception):
77
"""
88
BitPayException
99
"""
10+
1011
__bitpay_message = "Unexpected Bitpay exception."
1112
__bitpay_code = "BITPAY-GENERIC"
1213
__api_code = ""
@@ -25,6 +26,6 @@ def __init__(self, message, code=100, api_code="000000"):
2526

2627
def get_api_code(self):
2728
"""
28-
:return: Error code provided by the BitPay REST API
29+
:return: Error code provided by the BitPay REST API
2930
"""
3031
return self.__api_code

src/bitpay/exceptions/currency_exception.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ class CurrencyException(BitPayException):
99
"""
1010
CurrencyException
1111
"""
12-
__bitpay_message = "An unexpected error occurred while trying to manage the currency"
12+
13+
__bitpay_message = (
14+
"An unexpected error occurred while trying to manage the currency"
15+
)
1316
__bitpay_code = "BITPAY-CURRENCY-GENERIC"
1417
__api_code = ""
1518

src/bitpay/exceptions/currency_query_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class CurrencyQueryException(InvoiceException):
88
"""
99
CurrencyQueryException
1010
"""
11+
1112
__bitpay_message = "Failed to retrieve currencies"
1213
__bitpay_code = "BITPAY-CURRENCY-GET"
1314
__api_code = ""

src/bitpay/exceptions/invoice_cancellation_exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class InvoiceCancellationException(InvoiceException):
88
"""
99
InvoiceCancellationException
1010
"""
11+
1112
__bitpay_message = "Failed to cancel invoice object"
1213
__bitpay_code = "BITPAY-INVOICE-CANCEL"
1314
__api_code = ""

0 commit comments

Comments
 (0)