From 53c5a9aa41a55621c93915139504dbcd6cab96bd Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Sat, 15 May 2021 20:07:52 +0300 Subject: [PATCH] leftovers from p3 conversion --- files/file_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/file_list.py b/files/file_list.py index 10bcc57..c55ef37 100755 --- a/files/file_list.py +++ b/files/file_list.py @@ -325,7 +325,7 @@ def get_folder_contents(db,path): db.execute("SELECT file FROM list where file LIKE ?",(path+'%',)) for row in db: try: - base=row[0].decode('utf-8').replace(path,'',1) + base=row[0].replace(path,'',1) except UnicodeDecodeError: print(row[0]+" is giving me trouble.") try: