<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Hi Archana,<br>
    <br>
    Seems encode_value() is not defined:<br>
    <br>
    make[2]: Entering directory '/home/alinefm/wok'<br>
    PYTHONPATH=src contrib/check_i18n.py src/wok/plugins/*/i18n.py
    src/wok/i18n.py <br>
    Checking for invalid i18n string...<br>
    Checking for invalid i18n string successfully<br>
    <b>./src/wok/control/base.py:382: undefined name 'encode_value'</b><br>
    Makefile:930: recipe for target 'check-local' failed<br>
    make[2]: *** [check-local] Error 1<br>
    make[2]: Leaving directory '/home/alinefm/wok'<br>
    Makefile:797: recipe for target 'check-am' failed<br>
    make[1]: *** [check-am] Error 2<br>
    make[1]: Leaving directory '/home/alinefm/wok'<br>
    Makefile:509: recipe for target 'check-recursive' failed<br>
    make: *** [check-recursive] Error 1<br>
    <br>
    Could you fix it and resend?<br>
    <br>
    Thanks,<br>
    Aline Manera<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 05/23/2016 05:13 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:archus@linux.vnet.ibm.com">archus@linux.vnet.ibm.com</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:1463991231-3046-3-git-send-email-archus@linux.vnet.ibm.com"
      type="cite">
      <pre wrap="">From: Archana Singh <a class="moz-txt-link-rfc2396E" href="mailto:archus@linux.vnet.ibm.com">&lt;archus@linux.vnet.ibm.com&gt;</a>

As ident is in encoded value but e.message is in unicode value,
combination of which result into unicode value having encoded ident value.
So when wok_log.error try to encode(encoded value) it result into error.

This patch fix the unicode error by encoding e.message.

Signed-off-by: Archana Singh <a class="moz-txt-link-rfc2396E" href="mailto:archus@linux.vnet.ibm.com">&lt;archus@linux.vnet.ibm.com&gt;</a>
---
 src/wok/control/base.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/wok/control/base.py b/src/wok/control/base.py
index be5f618..d4fd4e4 100644
--- a/src/wok/control/base.py
+++ b/src/wok/control/base.py
@@ -373,9 +373,13 @@ class Collection(object):
                     res.lookup()
                 except Exception as e:
                     # In case of errors when fetching a resource info, pass and
-                    # log the error, so, other resources are returned
+                    # log the error, so, other resources are returned.
+                    # Encoding error message as ident is also encoded value.
+                    # This has to be done to avoid unicode error,
+                    # as combination of encoded and unicode value results into
+                    # unicode error.
                     wok_log.error("Problem in lookup of resource '%s'. "
-                                  "Detail: %s" % (ident, e.message))
+                                  "Detail: %s" % (ident, encode_value(e.message)))
                     continue
                 res_list.append(res)
             return res_list
</pre>
    </blockquote>
    <br>
  </body>
</html>