aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-02-21 14:13:42 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-02-21 14:13:42 +0100
commita7c4ef7b6e54592796d1b0e6a4ae66c0a6c20b4e (patch)
tree44913bf514f63261bb6548ee78f7699d6695bb39
parent2811c4d10dfca4002fa89240c3d6fd116e4a6013 (diff)
downloadroadmap-a7c4ef7b6e54592796d1b0e6a4ae66c0a6c20b4e.tar.gz
Fix UnicodeDecodeError.
Change-Id: I73201f6e923ef4e0944c0b7f1d3d9a7c4dbbfb0a
-rw-r--r--linaroroadmap/settings.py1
-rw-r--r--roadmap/helpers.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/linaroroadmap/settings.py b/linaroroadmap/settings.py
index 9eb5869..59441c2 100644
--- a/linaroroadmap/settings.py
+++ b/linaroroadmap/settings.py
@@ -188,6 +188,7 @@ LOGGING = {
'formatters': {
'simple': {
'format': '[%(asctime)s] %(levelname)-8s %(message)s',
+ 'encoding': 'utf8',
}
},
'handlers': {
diff --git a/roadmap/helpers.py b/roadmap/helpers.py
index 4508918..88a6664 100644
--- a/roadmap/helpers.py
+++ b/roadmap/helpers.py
@@ -305,7 +305,7 @@ def create_or_update(issue, options, jira=None):
log.info("Saving card {0}".format(issue.key))
card.save()
- log.debug("Saved {0} - {1}".format(issue.key, summary.encode('utf8')))
+ log.debug(u"Saved {0} - {1}".format(issue.key, summary))
return card