make sure path is unicode
This commit is contained in:
parent
2a76954018
commit
960db74222
1 changed files with 1 additions and 0 deletions
|
@ -494,6 +494,7 @@ class Client(object):
|
||||||
volumes = self.active_volumes()
|
volumes = self.active_volumes()
|
||||||
for name in sorted(volumes):
|
for name in sorted(volumes):
|
||||||
path = volumes[name]
|
path = volumes[name]
|
||||||
|
if not isinstance(path, unicode): path = path.encode('utf-8')
|
||||||
conn, c = self._conn()
|
conn, c = self._conn()
|
||||||
c.execute(u'SELECT path FROM file WHERE path LIKE ? AND deleted < 0', [u"%s%%" % path])
|
c.execute(u'SELECT path FROM file WHERE path LIKE ? AND deleted < 0', [u"%s%%" % path])
|
||||||
known_files = [r[0] for r in c.fetchall()]
|
known_files = [r[0] for r in c.fetchall()]
|
||||||
|
|
Loading…
Reference in a new issue