build/python: Improve error output in sanity check.

Instead of printing the "str()" representation of the excaption, print the
"repr()" representation. This will print the name of the exception and thus
ease understanding the actual error.
This commit is contained in:
Hartmut Goebel 2021-12-27 19:12:52 +01:00
parent 94f8ba37cc
commit fab871ae7a
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF

View file

@ -44,7 +44,7 @@ for dist in ws:
pkg_resources.require(req)
print('OK')
except Exception as e:
print('ERROR:', req, e)
print('ERROR:', req, repr(e))
ret = 1
continue