Skip to content

Commit

Permalink
Fix lint disable
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed Dec 30, 2021
1 parent 500adb6 commit bdaa6f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)


def assert_extract( # pylint: disable=missing-docstring
def assert_extract(
url,
expected_domain_data,
expected_ip_data="",
Expand All @@ -35,6 +35,9 @@ def assert_extract( # pylint: disable=missing-docstring
extract_using_fallback_to_snapshot_no_cache,
),
):
"""Test helper to compare all the expected and actual attributes and
properties of an extraction. Runs the same comparison across several
permutations of tldextract instance configurations."""
(
expected_fqdn,
expected_subdomain,
Expand Down
4 changes: 1 addition & 3 deletions tldextract/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def get(self, namespace, key):
return json.load(cache_file)
except (OSError, ValueError) as exc:
LOG.error("error reading TLD cache file %s: %s", cache_filepath, exc)
raise KeyError( # pylint: disable=raise-missing-from
"namespace: " + namespace + " key: " + repr(key)
)
raise KeyError("namespace: " + namespace + " key: " + repr(key)) from None

def set(self, namespace, key, value):
"""Set a value in the disk cache"""
Expand Down

0 comments on commit bdaa6f3

Please sign in to comment.