Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit 496eee0

Browse files
Formatting changes
1 parent 1c8a6e0 commit 496eee0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
ignore = E203, W503
3+
max-line-length = 88

pubproxpy/errors.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535

3636

3737
class ProxyError(Exception):
38-
"""Generic base error
39-
"""
38+
"""Generic base error"""
4039

4140
def __init__(self, response, message=_PROXY_ERROR_MESSAGE):
4241
if response is None:
@@ -46,32 +45,28 @@ def __init__(self, response, message=_PROXY_ERROR_MESSAGE):
4645

4746

4847
class APIKeyError(ProxyError):
49-
"""Error for incorrect API key response
50-
"""
48+
"""Error for incorrect API key response"""
5149

5250
def __init__(self, message=_API_KEY_ERROR_MESSAGE):
5351
super().__init__(None, message)
5452

5553

5654
class RateLimitError(ProxyError):
57-
"""Error for rate limiting response
58-
"""
55+
"""Error for rate limiting response"""
5956

6057
def __init__(self, message=_RATE_LIMIT_ERROR_MESSAGE):
6158
super().__init__(None, message)
6259

6360

6461
class DailyLimitError(ProxyError):
65-
"""Error for hitting the daily request limit
66-
"""
62+
"""Error for hitting the daily request limit"""
6763

6864
def __init__(self, message=_DAILY_LIMIT_ERROR_MESSAGE):
6965
super().__init__(None, message)
7066

7167

7268
class NoProxyError(ProxyError):
73-
"""Error for getting the "No Proxy" response
74-
"""
69+
"""Error for getting the "No Proxy" response"""
7570

7671
def __init__(self, message=_NO_PROXY_ERROR_MESSAGE):
7772
super().__init__(None, message)

0 commit comments

Comments
 (0)