Merge "Creating task with invalid property crashes in py3"

This commit is contained in:
Jenkins
2015-04-07 13:30:04 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class Controller(object):
try:
setattr(task, key, value)
except warlock.InvalidOperation as e:
raise TypeError(unicode(e))
raise TypeError(utils.exception_to_str(e))
resp, body = self.http_client.post(url, data=task)
#NOTE(flwang): remove 'self' for now until we have an elegant