[vlc-commits] extras: breakpad: Treat 20x and 30x codes as success

Hugo Beauzée-Luyssen git at videolan.org
Tue May 29 17:55:38 CEST 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue May 29 17:50:30 2018 +0200| [f9438ff3a05587cb4633355494a975e844f184cd] | committer: Hugo Beauzée-Luyssen

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

(cherry picked from commit 82c0e8b1aa83c34df2c883bc28fd04a0f8747bf6)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f9438ff3a05587cb4633355494a975e844f184cd
---

 extras/breakpad/symb_upload.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/breakpad/symb_upload.py b/extras/breakpad/symb_upload.py
index 3077f0b64e..54f0c90165 100755
--- a/extras/breakpad/symb_upload.py
+++ b/extras/breakpad/symb_upload.py
@@ -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()
 



More information about the vlc-commits mailing list