Commit 82c0e8b1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

extras: breakpad: Treat 20x and 30x codes as success

parent 876cc5b8
......@@ -160,7 +160,7 @@ class HTTPOutputStore(OutputStore):
def store(self, dump: typing.io.TextIO, meta):
post_args = {**meta, **self.extra_args}
r = requests.post(self.url, post_args, files={"symfile": dump})
if r.status_code != requests.codes.ok:
if not r.ok:
logging.error("Unable to perform request, ret {}".format(r.status_code))
r.raise_for_status()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment