Skip to content

Commit

Permalink
chore: fix typo in cvelib/net.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jdstrand committed Oct 22, 2024
1 parent 62541d9 commit 42b3263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvelib/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ def requestRaw(
res = requests.get(url, headers=hdrs, params=params)
except AttributeError as e: # pragma: nocover
# For some reason, requests to GitHub sometimes traceback with
# AttibuteError: 'dict' object has no attribute 'raw' when
# AttributeError: 'dict' object has no attribute 'raw' when
# requests_cache is in use. Let's try to work around that by retrying
# without the cache
if reqc is None:
raise
warn("requests_cache errored with AttibuteError: %s" % e)
warn("requests_cache errored with AttributeError: %s" % e)
warn("Retrying %s without caching" % url)
hdrs["Cache-Control"] = "no-cache"
if method == "post":
Expand Down

0 comments on commit 42b3263

Please sign in to comment.