summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-03-11 18:01:28 -0400
committerMonty Taylor <mordred@inaugust.com>2013-03-11 18:01:28 -0400
commit34a5291b6fb2a961b8c2ab5dd3308a2b3b8fa7c4 (patch)
treec859eae6bfd730a97e0dd16f9d91eee00562068a
parentf15e9db5f598b0d3cdfc57b976c156f525b6ad62 (diff)
downloadpbr-34a5291b6fb2a961b8c2ab5dd3308a2b3b8fa7c4.tar.gz
Fix exception handling error.
The exception handler was passing an exception object to the unicode function, which was not causing it to stringify.
-rw-r--r--pbr/d2to1/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbr/d2to1/core.py b/pbr/d2to1/core.py
index 3c9cd3a..cb343ba 100644
--- a/pbr/d2to1/core.py
+++ b/pbr/d2to1/core.py
@@ -48,7 +48,7 @@ def d2to1(dist, attr, value):
e = sys.exc_info()[1]
raise DistutilsSetupError(
'Error parsing %s: %s: %s' % (path, e.__class__.__name__,
- six.u(e)))
+ six.u(str(e))))
# Repeat some of the Distribution initialization code with the newly
# provided attrs