diff options
-rw-r--r-- | portato/db/sql.py | 2 | ||||
-rw-r--r-- | portato/eix/parser.pyx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/portato/db/sql.py b/portato/db/sql.py index c248c9a..f3b93f0 100644 --- a/portato/db/sql.py +++ b/portato/db/sql.py @@ -45,7 +45,7 @@ class SQLDatabase (Database): updateFormat = False if "format" not in session or session["format"] != self.FORMAT: - debug("Need to update database format from '%s' to '%s'", session["format"], self.FORMAT) + debug("Need to update database format from '%s' to '%s'", session.get("format", "undefined"), self.FORMAT) session["format"] = self.FORMAT updateFormat = True diff --git a/portato/eix/parser.pyx b/portato/eix/parser.pyx index d4bd3af..6363b37 100644 --- a/portato/eix/parser.pyx +++ b/portato/eix/parser.pyx @@ -279,7 +279,7 @@ cdef class package: after_offset = ftell(cfile) self.name = string(file) - self.description = string(file) + self.description = unicode(string(file)) # skip the rest, as it is currently unneeded #self.provide = vector(file, number) |