FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use correct capitalisation for exception class · NeutralCode/python-binance@a6348c7 · GitHub

Commit a6348c7

Browse files
Sam McHardy
committed
Use correct capitalisation for exception class
1 parent a8dbdbd commit a6348c7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎PYPIREADME.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ Quick Start
7979
8080
# withdraw 100 ETH
8181
# check docs for assumptions around withdrawals
82-
from binance.exceptions import BinanceApiException, BinanceWithdrawException
82+
from binance.exceptions import BinanceAPIException, BinanceWithdrawException
8383
try:
8484
result = client.withdraw(
8585
asset='ETH',
8686
address='<eth_address>',
8787
amount=100)
88-
except BinanceApiException as e:
88+
except BinanceAPIException as e:
8989
print(e)
9090
except BinanceWithdrawException as e:
9191
print(e)

‎docs/withdraw.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Raises a `BinanceWithdrawException <binance.html#binance.exceptions.BinanceWithd
1212

1313
.. code:: python
1414
15-
from binance.exceptions import BinanceApiException, BinanceWithdrawException
15+
from binance.exceptions import BinanceAPIException, BinanceWithdrawException
1616
try:
1717
result = client.withdraw(
1818
asset='ETH',
1919
address='<eth_address>',
2020
amount=100)
21-
except BinanceApiException as e:
21+
except BinanceAPIException as e:
2222
print(e)
2323
except BinanceWithdrawException as e:
2424
print(e)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL