aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tatt')
-rwxr-xr-xscripts/tatt4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/tatt b/scripts/tatt
index 7524c8b..7d0f378 100755
--- a/scripts/tatt
+++ b/scripts/tatt
@@ -152,6 +152,10 @@ if options.bugnum:
if "message" in response:
print(response["message"])
sys.exit(1)
+ if len(response["bugs"]) == 0:
+ print("bug " + options.bugnum + " not found in bugzilla")
+ sys.exit(1)
+
response = response["bugs"][0]
if "KEYWORDREQ" in response["keywords"] or response["component"] == "Keywording":
# This is a keywording bug: