From 555f41d567a0c850c20c2f710c9c9a68123a7514 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 11 Jan 2015 02:47:56 +0100 Subject: reproducible: catch OSError instead of FileNotFoundError (it's a 3.3 feature, not present in wheezy) --- bin/reproducible_html_packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index f4351797..7c71c8fa 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -123,7 +123,7 @@ def process_packages(packages): default_view = RBUILD_URI + '/' + pkg + '_' + version + '.rbuild.log' try: log_size = os.stat(rbuild).st_size - except FileNotFoundError: + except OSError: log.warning('The package ' + pkg + ' did not produce any buildlog! Check ' + rbuild) log_size = 0 -- cgit v1.2.3-70-g09d2