From 5d2c69dad50a0b9d770c1a1898db8a65d34813c6 Mon Sep 17 00:00:00 2001 From: Alexey Roslyakov Date: Mon, 18 Dec 2017 21:00:16 +0700 Subject: [PATCH] utils/scanpypi: increase error message verbosity When package installation fails it is good to know what happened. Signed-off-by: Alexey Roslyakov Reviewed-by: Yegor Yefremov Signed-off-by: Thomas Petazzoni --- utils/scanpypi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/scanpypi b/utils/scanpypi index 02384f2569..939c26a187 100755 --- a/utils/scanpypi +++ b/utils/scanpypi @@ -608,9 +608,9 @@ def main(): else: raise continue - except AttributeError: - print('Error: Could not install package {pkg}'.format( - pkg=package.real_name)) + except AttributeError as error: + print('Error: Could not install package {pkg}: {error}'.format( + pkg=package.real_name, error=error)) continue # Package requirement are an argument of the setup function -- 2.30.2