File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55A client API to MaxMind's minFraud Score and Insights web services.
66"""
77
8+ # flake8: noqa: F401
89from .errors import (
910 MinFraudError ,
1011 AuthenticationError ,
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def maybe_hash_email(transaction):
9797 if at_idx == - 1 :
9898 return
9999
100- domain = _clean_domain (address [at_idx + 1 :])
100+ domain = _clean_domain (address [at_idx + 1 :]) # noqa
101101 local_part = address [:at_idx ]
102102
103103 if domain != "" and "domain" not in email :
Original file line number Diff line number Diff line change 3232
3333_REQUEST_UA = f"minFraud-API/{ __version__ } { requests .utils .default_user_agent ()} "
3434
35+
3536# pylint: disable=too-many-instance-attributes, missing-class-docstring
3637class BaseClient :
3738 _account_id : str
@@ -74,7 +75,8 @@ def _handle_success(
7475 decoded_body = json .loads (raw_body )
7576 except ValueError as ex :
7677 raise MinFraudError (
77- f"Received a 200 response but could not decode the response as JSON: { raw_body } " ,
78+ "Received a 200 response but could not decode the "
79+ f"response as JSON: { raw_body } " ,
7880 200 ,
7981 uri ,
8082 ) from ex
You can’t perform that action at this time.
0 commit comments