diff --git a/aqt/editor.py b/aqt/editor.py index 2dfab13f5..48890ad6a 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -789,7 +789,7 @@ please click the help button."""), help="cloze") if canDelete and self.mw.pm.profile['deleteMedia']: if os.path.abspath(name) != os.path.abspath(path): try: - os.unlink(old) + os.unlink(path) except: pass # return a local html link