summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_packages.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-01-18 10:59:29 +0100
committerMattia Rizzolo <mattia@mapreri.org>2015-01-19 18:07:31 +0100
commit30679ab6a81684b380653637e4f2a5fe31a15cae (patch)
tree93e1dc92da54de81fb22d24f0c36f5982545f68f /bin/reproducible_html_packages.py
parentde644c6630470d3cda91feb365a88668ad4e0192 (diff)
downloadjenkins.debian.net-30679ab6a81684b380653637e4f2a5fe31a15cae.tar.xz
reproducible: _html_packages: better handling of exceptions
Diffstat (limited to 'bin/reproducible_html_packages.py')
-rwxr-xr-xbin/reproducible_html_packages.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index 2cb4b0c7..28850f39 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -64,7 +64,9 @@ def check_package_status(package):
'WHERE name="%s"' % package
result = query_db(query)[0]
except IndexError:
- log.critical('The query produces no results. The query: ' + query)
+ print_critical_message('This query produces no results: ' + query +
+ '\nThis means there is no tested package with the name ' +
+ package + '.')
raise
status = str(result[0])
version = str(result[1])