summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-08-17 10:49:26 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-08-17 10:49:26 +0000
commit14ee58c5f49ed11ed5c5b57bb708263246255990 (patch)
tree2b6d173f70b4389b157501d8006e23c4c936e90b
parentf5b51adf4fe89a443ef6f3c49e05a3e75be60722 (diff)
downloadjenkins.debian.net-14ee58c5f49ed11ed5c5b57bb708263246255990.tar.xz
reproducible: notes: do not fail when not run on jenkins due to lack of the BUILD_URL evn variable
-rwxr-xr-xbin/reproducible_notes.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/reproducible_notes.py b/bin/reproducible_notes.py
index 15921b72..b6173598 100755
--- a/bin/reproducible_notes.py
+++ b/bin/reproducible_notes.py
@@ -50,8 +50,12 @@ def load_notes():
print_critical_message('Warning: This query produces no results: ' + query
+ '\nThis means there is no tested ' +
'package with the name ' + pkg)
- irc_msg('There is problem with the note for ' + pkg +
- ' - please have a look at ' + os.environ['BUILD_URL'])
+ try:
+ irc_msg('There is problem with the note for ' + pkg +
+ ' - please have a look at ' + os.environ['BUILD_URL'])
+ except KeyError:
+ log.error('There is a problem with the note for %s - please '
+ 'check.', pkg)
else:
notes[pkg] = []
for suite in result: