diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..645c171 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/harpy/response.py b/harpy/response.py index b8c52e7..120a86b 100644 --- a/harpy/response.py +++ b/harpy/response.py @@ -9,7 +9,7 @@ def __init__(self, j): self.status = self.raw["status"] self.status_text = self.raw["statusText"] - self.http_version = self.raw["httpVersion"] + self.http_version = self.raw.get("httpVersion", None) self.cookies = [] for c in self.raw["cookies"]: