Skip to content

Commit fb697e1

Browse files
author
Kotsias, Panagiotis-Christos
committed
UserWarning to AssertionError
1 parent 1e3a383 commit fb697e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

etherscan/utils/parsing.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import requests
2-
import warnings
32

43

54
class ResponseParser:
@@ -10,9 +9,9 @@ def parse(response: requests.Response):
109
if "status" in content.keys():
1110
status = bool(int(content["status"]))
1211
message = content["message"]
13-
if not status:
14-
warnings.warn(f"{result} -- {message}")
15-
# assert status, f"{result} -- {message}"
12+
# if not status:
13+
# warnings.warn(f"{result} -- {message}")
14+
assert status, f"{result} -- {message}"
1615
else:
1716
# GETH or Parity proxy msg format
1817
# TODO: see if we need those values

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy