leftovers from p3 conversion
This commit is contained in:
@@ -325,7 +325,7 @@ def get_folder_contents(db,path):
|
|||||||
db.execute("SELECT file FROM list where file LIKE ?",(path+'%',))
|
db.execute("SELECT file FROM list where file LIKE ?",(path+'%',))
|
||||||
for row in db:
|
for row in db:
|
||||||
try:
|
try:
|
||||||
base=row[0].decode('utf-8').replace(path,'',1)
|
base=row[0].replace(path,'',1)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
print(row[0]+" is giving me trouble.")
|
print(row[0]+" is giving me trouble.")
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user