mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-17 05:21:49 +00:00
Catch KeyError explicitly in the autopkgtest policy to reduce the log size
This commit is contained in:
parent
4c77bf0780
commit
2f3cbbbdf8
@ -764,6 +764,8 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
self.logger.info('Source package %s has binaries which are NOT Architecture: all, and tests have been requested on %s, running tests for this package',
|
self.logger.info('Source package %s has binaries which are NOT Architecture: all, and tests have been requested on %s, running tests for this package',
|
||||||
src,
|
src,
|
||||||
arch)
|
arch)
|
||||||
|
except KeyError as err:
|
||||||
|
self.logger.error('i386 useless autopkgtest check failed with: KeyError: %s', err)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.error('i386 useless autopkgtest check failed with: %s', traceback.format_exc())
|
self.logger.error('i386 useless autopkgtest check failed with: %s', traceback.format_exc())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user