• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ape364 / aioetherscan / 11508304044

24 Oct 2024 10:16PM UTC coverage: 100.0%. Remained the same
11508304044

Pull #33

github

ape364
fix: pragma: no cover
Pull Request #33: feat: add api keys rotating

41 of 41 new or added lines in 4 files covered. (100.0%)

699 of 699 relevant lines covered (100.0%)

4.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/aioetherscan/exceptions.py
1
class EtherscanClientError(Exception):
4✔
2
    pass
4✔
3

4

5
class EtherscanClientContentTypeError(EtherscanClientError):
4✔
6
    def __init__(self, status, content):
4✔
7
        self.status = status
4✔
8
        self.content = content
4✔
9

10
    def __str__(self):
4✔
11
        return f'[{self.status}] {self.content!r}'
4✔
12

13

14
class EtherscanClientApiError(EtherscanClientError):
4✔
15
    def __init__(self, message, result):
4✔
16
        self.message = message
4✔
17
        self.result = result
4✔
18

19
    def __str__(self):
4✔
20
        return f'[{self.message}] {self.result}'
4✔
21

22

23
class EtherscanClientApiRateLimitError(EtherscanClientApiError):
4✔
24
    pass
4✔
25

26

27
class EtherscanClientProxyError(EtherscanClientError):
4✔
28
    """JSON-RPC 2.0 Specification
29

30
    https://www.jsonrpc.org/specification#error_object
31
    """
32

33
    def __init__(self, code, message):
4✔
34
        self.code = code
4✔
35
        self.message = message
4✔
36

37
    def __str__(self):
4✔
38
        return f'[{self.code}] {self.message}'
4✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc