# HG changeset patch # User cavaliet # Date 1369757937 -7200 # Node ID b4559d14b9ac73a5e284486986b81695a840d65f # Parent 62eee5e70b6b96970ae8695b96b29efa3f5834f5 little debug in content delete diff -r 62eee5e70b6b -r b4559d14b9ac src/ldt/ldt/ldt_utils/models.py --- a/src/ldt/ldt/ldt_utils/models.py Tue May 28 12:38:17 2013 +0200 +++ b/src/ldt/ldt/ldt_utils/models.py Tue May 28 18:18:57 2013 +0200 @@ -235,7 +235,7 @@ if os.path.exists(temp): move(temp, iri_dir) os.rmdir(os.path.dirname(temp)) - if os.path.exists(temp_thumbnail): + if os.path.exists(temp_thumbnail) and os.path.exists(os.path.join(temp_thumbnail, os.path.basename(thumbnail))): move(os.path.join(temp_thumbnail, os.path.basename(thumbnail)), os.path.dirname(thumbnail)) os.rmdir(temp_thumbnail)