Skip to content

Commit

Permalink
fix(pingdom-operator): handle missing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nefelim4ag committed Jun 14, 2023
1 parent 308558a commit a4fb22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/pingdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def __parse_headers(self, headers):
# "CF-RAY": "733eb6789c4268fb-FRA",
# "Content-Encoding": "gzip"
# }
self.req_limit_short = dict(headers)["req-limit-short"]
self.req_limit_long = dict(headers)["req-limit-long"]
self.req_limit_short = dict(headers).get("req-limit-short")
self.req_limit_long = dict(headers).get("req-limit-long")

def checks(self, *args):
response = None
Expand Down

0 comments on commit a4fb22d

Please sign in to comment.