File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import requests
22
33
4- class SerpAPIError (Exception ):
4+ class SerpApiError (Exception ):
55 """Base class for exceptions in this module."""
66
77 pass
88
99
10- class APIKeyNotProvided (ValueError , SerpAPIError ):
10+ class APIKeyNotProvided (ValueError , SerpApiError ):
1111 """API key is not provided."""
1212
1313 pass
1414
1515
16- class SearchIDNotProvided (ValueError , SerpAPIError ):
16+ class SearchIDNotProvided (ValueError , SerpApiError ):
1717 """Search ID is not provided."""
1818
1919 pass
2020
2121
22- class HTTPError (requests .exceptions .HTTPError , SerpAPIError ):
22+ class HTTPError (requests .exceptions .HTTPError , SerpApiError ):
2323 """HTTP Error."""
2424
2525 pass
2626
2727
28- class HTTPConnectionError (HTTPError , requests .exceptions .ConnectionError , SerpAPIError ):
28+ class HTTPConnectionError (HTTPError , requests .exceptions .ConnectionError , SerpApiError ):
2929 """Connection Error."""
3030
3131 pass
You can’t perform that action at this time.
0 commit comments