From e0f3d32198bfb7c86a5ddc4e87630f71d78f191a Mon Sep 17 00:00:00 2001 From: q Date: Wed, 6 Aug 2014 19:41:13 +0300 Subject: [PATCH] fixed typo --- image_list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image_list.py b/image_list.py index 343fc17..44c87c5 100755 --- a/image_list.py +++ b/image_list.py @@ -143,6 +143,7 @@ def add_recurse(options): add_single(conn,filename,change=True,minsize=options.minsize) except: print('error changing file: '+filename) + traceback.print_exc(file=sys.stdout) sys.exit(1) # if file mentioned, and hash same, no need to change entry conn.commit() @@ -164,7 +165,7 @@ def add_single(conn,filename,change=False,hash=None,minsize=0): fsize=os.path.getsize(filename) if change: db.execute("UPDATE list SET date=?, portrait=?, hash=?, width=? ,height=?, \ - fingerprint=NULL, sharpness=NULL, R=NULL, G=NULL, B=NLL, BR=NULL, BG=NULL, BB=NULL, \ + fingerprint=NULL, sharpness=NULL, R=NULL, G=NULL, B=NULL, BR=NULL, BG=NULL, BB=NULL, \ size=? WHERE file=?",(ftime,portrait,hash,dims[0],dims[1],fsize,filename)) print("changing: %(f)s (%(x)sx%(y)s)" % {'f':filename, 'x':dims[0], 'y':dims[1]}) else: