diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-01-11 02:47:56 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-11 08:32:02 +0000 |
commit | 555f41d567a0c850c20c2f710c9c9a68123a7514 (patch) | |
tree | 86d6b5512e785dd58d07d0951716a7d85bbec47c /bin | |
parent | 441705e805382f8e9e626cc9ed34faedafd872d9 (diff) | |
download | jenkins.debian.net-555f41d567a0c850c20c2f710c9c9a68123a7514.tar.xz |
reproducible: catch OSError instead of FileNotFoundError (it's a 3.3 feature, not present in wheezy)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_packages.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |