From 8137c7c3bfa787fd2f3f5a0888274176ca8b7286 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 10 May 2021 10:18:52 +0200 Subject: [PATCH] roomservice: Set exit status if we fail to fetch data from github Change-Id: I6f69f1df1ba7d28e68c5961b405a54e209643db3 --- build/tools/roomservice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/tools/roomservice.py b/build/tools/roomservice.py index bf502a53..9d96bf11 100755 --- a/build/tools/roomservice.py +++ b/build/tools/roomservice.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # Copyright (C) 2012-2013, The CyanogenMod Project -# (C) 2017, The LineageOS Project +# (C) 2017-2018,2020-2021, The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -78,10 +78,10 @@ if not depsonly: result = json.loads(urllib.request.urlopen(githubreq).read().decode()) except urllib.error.URLError: print("Failed to search GitHub") - sys.exit() + sys.exit(1) except ValueError: print("Failed to parse return data from GitHub") - sys.exit() + sys.exit(1) for res in result.get('items', []): repositories.append(res)