excutils: replace unicode by six.u
This makes it more Python 3 compatible. Change-Id: If640e551905836124657c79ab624e5717a0033a6
This commit is contained in:
@@ -79,7 +79,7 @@ def forever_retry_uncaught_exceptions(infunc):
|
||||
try:
|
||||
return infunc(*args, **kwargs)
|
||||
except Exception as exc:
|
||||
this_exc_message = unicode(exc)
|
||||
this_exc_message = six.u(str(exc))
|
||||
if this_exc_message == last_exc_message:
|
||||
exc_count += 1
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user